summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2011-09-18 08:57:34 +0000
committerNick <nick@somerandomnick.ano>2011-09-18 08:57:34 +0000
commit69c9648ecaa7c7ac9b811493cf383fa5df200423 (patch)
tree2c150da39123a2c89182176d4d5a054ddeecbc5e /doc
parent6e9018d9c27e50214c187199c955756b5eee67f0 (diff)
downloadresdb-69c9648ecaa7c7ac9b811493cf383fa5df200423.tar.gz
resdb-69c9648ecaa7c7ac9b811493cf383fa5df200423.zip
PP (uncommented safe defaults and added useragent pass-through)
Diffstat (limited to 'doc')
-rw-r--r--doc/www.powerfulproxy.com/public_html/do_it.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/www.powerfulproxy.com/public_html/do_it.php b/doc/www.powerfulproxy.com/public_html/do_it.php
index 39be1d7..8556f73 100644
--- a/doc/www.powerfulproxy.com/public_html/do_it.php
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php
@@ -30,8 +30,10 @@ $REWRITE_PATTERNS = array(
// '@(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 @@ $CURL_OPTIONS = array(
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 */