here is a ip ban script very basic but works have fun edit as you wish
Basic Ip Ban For Mobile Chat
Started on the old forum in September 2008 · view the original in the archive · old links redirect here
You need to ban the ip AND user agent.. this file has been in the chat since the start:
<?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]);}
?>
You will probably need to update the browser string for php5 i just grabbed that from a very old copy of wappychat.
that is no better then ip banning it will ban anyone using same device and ip so u ban 1 person pro end up losing 100 possible membes there is no point ip banning there is apparently a sim id that is unique im looking into request that
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
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:
<?php
$headers = apache_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value
\n";
}
?>
which will output something like this:
Accept: / Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 Host: http://www.example.com Connection: Keep-Alive
there is always a way perhaps we could look for serial numbers
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
could always request phone number on registration and send out a validation code that way u can ban the number like i said there is always away
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
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.
lol just an idea i personally have fun tring to keep ppl out of my site when there being a pain its fun lol ps. who are you pss. ill bbs
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
Another way is shielding trusted users like in the lava script, so if they have a shield the ip/browser ban is ignored, but its a slow process of shielding each trusted user, maybe if it was set to auto-shield after a set time period of being a member, mmm.
i simply set auto shield ON when user get validated 😉 it is that simple 😀
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
no cause it stop any other user from sign up if they have same ip
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
Surely that defeats the whole point if ALL validated members are shielded. ???
its the only way you can use IP ban..
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
that wont change a thing still bans new ppl with same ip so it dont solve anything
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }