TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Proxy detection (http://www.talkphp.com/general/3985-proxy-detection.html)

KingOfTheSouth 02-18-2009 01:49 AM

Proxy detection
 
I was wanting to know if anyone can help me update this page??? I do not know anything about this lol I am more into game coding.

PHP Code:

<?php
include("html.php");
secureheader();
siteheader();
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)
{
echo 
"Warning: proxy server detected!! Admin have been notified, if your account is suspended it will not be unlocked!!<br><br>";
echo 
"Connected Via: " $HTTP_VIA " - " $REMOTE_ADDR;
echo 
"<br>Your real IP: " $HTTP_X_FORWARDED_FOR
}
else
{
echo 
"Proxy detection clear: Enjoy the game.<br>";
echo 
"Your IP: " $REMOTE_ADDR;
}

?>

What I want it to do is make sure it works lol I have gotten on a proxy server and tested and it still let me through. I want to work til it loads to the ext page

Wildhoney 02-18-2009 02:04 AM

I've written about this before. Essentially, a lot of proxy servers are unlikely to be setting the X-Forwarded-For header, particularly web based proxies.

Edit: Thinking about it, there is a more sneaky way to detect multiple accounts, as it appears that's what you're doing. You can use the following method for that. Simply send the data back via AJAX to a PHP script.

KingOfTheSouth 02-18-2009 03:49 AM

Yeah that is what I am trying to do is there a way you can help out with that? this is nothing I am good at


All times are GMT. The time now is 10:03 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0