Dragen Posted May 13, 2007 Share Posted May 13, 2007 Hi, I've been trying to figure out how to ban proxys from accessing certain parts of my site.. here's my code: <?php if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){ echo "yes"; }else{ echo "no"; } ?> As expected when I access the page it outputs no, but I just did a google search for proxy servers to test with and I when I used it, it still outputted no. Surely it should've been yes if I'm using a proxy... could anyone help me here? Thanks Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/ Share on other sites More sharing options...
Dragen Posted May 13, 2007 Author Share Posted May 13, 2007 just thinking.. do I need to change something in my php.ini file to allow access to reading ip's etc? Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-252415 Share on other sites More sharing options...
Dragen Posted May 14, 2007 Author Share Posted May 14, 2007 any ideas? Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-252667 Share on other sites More sharing options...
Dragen Posted May 14, 2007 Author Share Posted May 14, 2007 I've just read a bit about proxys and seems like if they're using a High Anonymous Proxy, then it looks just like a normail connection and you wont be able to tell... so would the best option be to get a list of proxy ips and block them all? Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-252698 Share on other sites More sharing options...
Dragen Posted May 14, 2007 Author Share Posted May 14, 2007 anyone? Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-252939 Share on other sites More sharing options...
Dragen Posted May 15, 2007 Author Share Posted May 15, 2007 ? Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-253441 Share on other sites More sharing options...
Dragen Posted May 15, 2007 Author Share Posted May 15, 2007 I'm having a manic conversation with myself here... Link to comment https://forums.phpfreaks.com/topic/51232-http_x_forwarded_for-to-ban-proxy/#findComment-253601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.