![]() |
|
|||||||
| Register | FAQ | Members List | Arcade | Dev Directory | HB Bank | Calendar | Search | Today's Posts | Mark Forums Read |
| PHP, CGI, ASP, Server-Side Programming Discuss server-side programming such as PHP, CGI, ASP, and others. |
| Have A Look At Some Of Our Webmaster Related Sponsors! | |||||
![]() Script Directory |
![]() Advertise Here |
![]() Market Leverage |
![]() Free Templates |
![]() 3D Guide-characters |
![]() Advertise Here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#3 (permalink) |
|
Sharp Shooter
|
and if you're using this and want to know country's ip use this
http://blockacountry.com/ |
|
|
|
|
|
#4 (permalink) |
|
New Hunter
|
If you're not having much luck with the first one, here's an alternate source:
Code:
<?php
//Set banned IP
$banned = '123.123.123.123';
//get user IP address
$userip = $_SERVER['REMOTE_ADDR'];
//check for banned IP address
if($userip == $banned){
echo "<BR>This IP address has been banned";
exit();
}
//continue with script...
?>
|
|
|
|
|
|
#7 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 88
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Cos of IP banning, people use like unfilter sites and that crap to show a different IP, letting them on the site.
I saw a script once which like, would uncover there original IP, prety useful. Ill try and find it soon for you. |
|
|
|
|
|
#8 (permalink) |
|
Field Master
|
Also something to keep in mind when banning IP or IP blocks. If the person you are banning is on a dynamic IP, then it will most likely change each time he resets his account. This will mean that someone else will be assigned that IP most likely and he will be unbanned. Then the new person (which is rare, I'll admit) will not now why he is banned. If you ban an entire IP block, be sure it's not something like some central hub as you may ban the entire network from coming to your site.
You can always do a whois with the IP address to find out who the IP block belongs to. |
|
|
|
|
|
#9 (permalink) | |
|
Field Master
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|