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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-21-2011, 06:34 AM   #1
Klen
 
Klen's Avatar
 
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 08:45 AM   #2
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Use iptables redirect.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 08:49 AM   #3
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
Quote:
Originally Posted by AdultKing View Post
Use iptables redirect.
then he'll have to know the IPs of the proxies....
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 08:51 AM   #4
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
http://www.maxmind.com/app/geoip_country
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 10:24 AM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by KlenTelaris View Post
Anyone have script which you can use to mass include to several sites with purpose to redirect proxy traffic somewhere else.
you can check for the proxy header.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 10:26 AM   #6
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by fris View Post
you can check for the proxy header.
...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.)
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 10:36 AM   #7
Klen
 
Klen's Avatar
 
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:
 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 >"
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 10:37 AM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by GrouchyAdmin View Post
...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.)
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 11:15 AM   #9
Klen
 
Klen's Avatar
 
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 11:17 AM   #10
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by KlenTelaris View Post
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.
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;
		}
		
		
}

?>
not sure if this is what you are after.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2011, 11:36 AM   #11
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by fris View Post
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;
		}
		
		
}

?>
not sure if this is what you are after.
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2011, 05:48 AM   #12
Klen
 
Klen's Avatar
 
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.