here is a ip ban script very basic but works have fun edit as you wish
Basic Ip Ban For Mobile Chat
Collapse
X
-
GuestTags: None
-
Guest
ok u need to get the person or person's ip address then put he ip addy in the section and u need to include the file in all the pages u wish to ban the user from so if ur ip banning i guess you wanna include it in every file
Comment
-
Guest
-
You need to ban the ip AND user agent.. this file has been in the chat since the start:
Code:<?php $browser = explode ('/', $HTTP_USER_AGENT); if($REMOTE_ADDR=="ip" AND $browser[0]=="browser"){ header ('Location: [url]http://urban-chaos.uni.cc/s60realm/chat/yourbanned.php'[/url]);} ?>
Comment
-
its a LOT better than banning ip alone, but yes still not perfect. And no there is no way of getting sim number or imei without network co-operation. A few foriegn networks give more details than most but not many.. the best way to see what info a phone gives is by using some code maybe a little like this:
Code:<?php $headers = apache_request_headers(); foreach ($headers as $header => $value) { echo "$header: $value \n"; } ?>
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0
Host: www.example.com
Connection: Keep-Alive
Comment
-
The method of sending sms verification works yeah but there is no way to get the number/sim no/imei via php...
And at the price of sim cards now days (think you can still get them free from 02) that method is also un-effective.
Another problem is actually making sure your sms script is actually sending to all countries and networks.
Example of it being used is: http://chatabox.co.uk (use mobile).
Also you can only ban the number from registering, not actually using the site.
Comment
Comment