changeset 613:c2879679114d draft

PP (uncommented safe defaults and added useragent pass-through)
author Nick <nick@somerandomnick.ano>
date Sun, 18 Sep 2011 08:57:34 +0000
parents b721aa91808d
children 2b68d711a063
files doc/www.powerfulproxy.com/public_html/do_it.php
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/www.powerfulproxy.com/public_html/do_it.php	Fri Sep 16 10:02:19 2011 +0000
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php	Sun Sep 18 08:57:34 2011 +0000
@@ -30,8 +30,10 @@
 //	'@(src|href|action)\s*=\s*(\'|")/([^\'"]*)\2@i' => '$1=$2'.$SERVICEURL.$proto.'/'.$host.'/$3$2',
 	'@(<[^>]*)(src|href|action)\s*=\s*(\'|")/([^\'"]*)\3@i' => '$1$2=$3'.$SERVICEURL.$proto.'/'.$host.'/$4$3',
 );
-$CURL_OPTIONS = array(
-	CURLOPT_USERAGENT	=> "AnoNet proxy",
+if (file_exists("do_it.inc")) include "do_it.inc";
+if (!isset($CURL_OPTIONS)) $CURL_OPTIONS = array(
+//	CURLOPT_USERAGENT	=> "AnoNet proxy",
+	CURLOPT_USERAGENT	=> $_SERVER["HTTP_USER_AGENT"]." AnoNetProxy",
 	CURLOPT_AUTOREFERER	=> TRUE,
 	CURLOPT_CONNECTTIMEOUT	=> 15,
 	CURLOPT_TIMEOUT		=> 28,
@@ -40,7 +42,7 @@
 	CURLOPT_HEADER		=> 1,
 	CURLOPT_FOLLOWLOCATION	=> FALSE,
 //	CURLOPT_INTERFACE	=> '0.0.0.0',
-//	CURLOPT_PROXY		=> "http://b.polipo.srn.ano:8000/",
+	CURLOPT_PROXY		=> "http://b.polipo.srn.ano:8000/",
 //	CURLOPT_PROXYUSERPWD	=> 'username:password',
 );
 /* END OF CONFIGURATION */