Jump to content

Proxy Detection Error


Mod-Jay

Recommended Posts

I was on a proxy and it didnt detect it, idk why.

 

 

  if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])
    || !empty($_SERVER['HTTP_X_FORWARDED'])
    || !empty($_SERVER['HTTP_FORWARDED_FOR'])
    || empty($_SERVER['HTTP_CONNECTION'])
    || $hostaddr == "."
    || stripos($hostaddr, "tor-exit")
    || !empty($_SERVER['HTTP_VIA'])
    || empty($_SERVER['HTTP_ACCEPT_ENCODING'])
    || in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))
    ) {
    die('on Proxy');

Link to comment
https://forums.phpfreaks.com/topic/226184-proxy-detection-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.