![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
PHP proxy redirect script?
Anyone have script which you can use to mass include to several sites with purpose to redirect proxy traffic somewhere else.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Raise Your Weapon
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
|
Use iptables redirect.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Raise Your Weapon
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
...and you can run a wordpress platform, but that doesn't mean it's gonna work out, either.
(See what I did there? Custom response, just for you, buddy.)
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
I got perl script with solution,but i need php version.
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
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; } } ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
So basically script need to detect and redirect such traffic to desired url.Most of trade scripts can do it,but it's faster to add code into site wide include.
|
![]() |
![]() ![]() ![]() ![]() ![]() |