| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: May 2004 Location: /etc/passwd
Posts: 2,178
![]() ![]() ![]() ![]() ![]() ![]() | Proxy Detection in php This isnt ment to be used as is, needs some work but it does the trick. You need some php knowledge to use this. <?php echo "Starting Proxy Detection System<br><br>"; #Here you can call a function to check if the IP is blocked #and if not then continue to the IF statement if ($HTTP_X_FORWARDED_FOR) ????: NamePros.com http://www.namepros.com/code/35716-proxy-detection-in-php.html { echo "Warring: You might be using a proxy server to connect us<br><br>"; echo "Connected Via: " . $HTTP_VIA . " - " . $REMOTE_ADDR; echo "<br>Your real IP: " . $HTTP_X_FORWARDED_FOR; } else { echo "You are probably not using a proxy server<br>"; echo "Your IP: " . $REMOTE_ADDR; } ?> Thanks, Cody Selzer |
| |