Anyone have script which you can use to mass include to several sites with purpose to redirect proxy traffic somewhere else.
PHP proxy redirect script?
Collapse
X
-
-
Comment
-
Comment
-
I got perl script with solution,but i need php version.
PHP Code:if ( $ENV{HTTP_X_FORWARDED_FOR} || $ENV{HTTP_VIA} || $ENV{HTTP_CACHE_CONTROL} || $ENV{HTTP_PROXY_CONNECTION} ) { print "<script>document.location = 'http://';</script >"; #proxy traff } else { print "<script>document.location = 'http://';</script >";Comment
-
so much hate for everything.
why dont you give us some input on what you would do since you are so advanced in the developing field.
if all you do is give negative feedback, why bother.Comment
-
Found another here:
http://www.phpbuddy.com/article.php?id=22
but not sure does it work since it's kind a tricky to test it.Comment
-
Found another here:
http://www.phpbuddy.com/article.php?id=22
but not sure does it work since it's kind a tricky to test it.not sure if this is what you are after.Code:<?php $test = new proxyCheck(); $test->serverVar = $_SERVER; $header = $test->checkHeader(); class proxyCheck { var $serverVar = array(); private $proxyHeader = array(); function checkHeader() { if(isset($this->serverVar['HTTP_X_FORWARDED_FOR'])) { $this->proxyHeader['HTTP_X_FORWARDED_FOR'] = $this->serverVar['HTTP_X_FORWARDED_FOR']; } if(isset($this->serverVar['HTTP_X_FORWARDED'])) { $this->proxyHeader['HTTP_X_FORWARDED'] = $this->serverVar['HTTP_X_FORWARDED']; } if(isset($this->serverVar['HTTP_FORWARDED'])) { $this->proxyHeader['HTTP_FORWARDED'] = $this->serverVar['HTTP_FORWARDED']; } if(isset($this->serverVar['HTTP_PROXY_AGENT'])) { $this->proxyHeader['HTTP_PROXY_AGENT'] = $this->serverVar['HTTP_PROXY_AGENT']; } if(isset($this->serverVar['HTTP_VIA'])) { $this->proxyHeader['HTTP_VIA'] = $this->serverVar['HTTP_VIA']; } if(isset($this->serverVar['HTTP_PROXY_CONNECTION'])) { $this->proxyHeader['HTTP_PROXY_CONNECTION'] = $this->serverVar['HTTP_PROXY_CONNECTION']; } if(isset($this->serverVar['HTTP_CLIENT_IP'])) { $this->proxyHeader['HTTP_CLIENT_IP'] = $this->serverVar['HTTP_CLIENT_IP']; } return $this->proxyHeader; } } ?>Comment
-
Welll there are several types of proxys,what is considered proxy here it's non-anonymous alias transparent proxy where you can see both real and proxy ip.I find it weird why this kind of proxy ip's still exits since all web proxy sites are anonymous proxies,plus even if someone using classing proxies it's very easy to find anonymous proxies.I guess only bot things uses this kind of proxy therefore it need to be banned from traffic pool.not sure if this is what you are after.Code:<?php $test = new proxyCheck(); $test->serverVar = $_SERVER; $header = $test->checkHeader(); class proxyCheck { var $serverVar = array(); private $proxyHeader = array(); function checkHeader() { if(isset($this->serverVar['HTTP_X_FORWARDED_FOR'])) { $this->proxyHeader['HTTP_X_FORWARDED_FOR'] = $this->serverVar['HTTP_X_FORWARDED_FOR']; } if(isset($this->serverVar['HTTP_X_FORWARDED'])) { $this->proxyHeader['HTTP_X_FORWARDED'] = $this->serverVar['HTTP_X_FORWARDED']; } if(isset($this->serverVar['HTTP_FORWARDED'])) { $this->proxyHeader['HTTP_FORWARDED'] = $this->serverVar['HTTP_FORWARDED']; } if(isset($this->serverVar['HTTP_PROXY_AGENT'])) { $this->proxyHeader['HTTP_PROXY_AGENT'] = $this->serverVar['HTTP_PROXY_AGENT']; } if(isset($this->serverVar['HTTP_VIA'])) { $this->proxyHeader['HTTP_VIA'] = $this->serverVar['HTTP_VIA']; } if(isset($this->serverVar['HTTP_PROXY_CONNECTION'])) { $this->proxyHeader['HTTP_PROXY_CONNECTION'] = $this->serverVar['HTTP_PROXY_CONNECTION']; } if(isset($this->serverVar['HTTP_CLIENT_IP'])) { $this->proxyHeader['HTTP_CLIENT_IP'] = $this->serverVar['HTTP_CLIENT_IP']; } return $this->proxyHeader; } } ?>Comment


AIM: GrouchyGfy
Comment