--- cgiproxy/nph-proxy.cgi Wed Jun 9 18:17:22 1999 +++ dejanews/nph-proxy.cgi Wed Dec 22 17:03:19 1999 @@ -81,7 +81,7 @@ # If set, then proxy traffic will be restricted to text data only, to save # bandwidth (though it can still be circumvented with uuencode, etc.). -$TEXT_ONLY= 0 ; # set to 1 to allow only text data, 0 to allow all +$TEXT_ONLY= 1 ; # set to 1 to allow only text data, 0 to allow all # If set, then support cookies through the proxy. $SUPPORT_COOKIES= 1 ; @@ -89,7 +89,7 @@ # If set, then adopt several tactics to minimize ads and ad-related cookies. # If you want to fine-tune the behavior, configure $NO_COOKIE_WITH_IMAGE, # @BANNED_COOKIE_SERVERS, and @BANNED_IMAGE_URL_PATTERNS below. -$FILTER_ADS= 0 ; +$FILTER_ADS= 1 ; # Create your own proxy_encode() and proxy_decode() to tranform the target @@ -584,8 +584,47 @@ # 8-4-98 JSM: Changed the regex to fix a bug: would only change the # first URL in a tag. New regex is probably slower. +$nuke_body=0; + foreach (@body) { + + # nuke deja.com shit + +# print "-b($nuke_body)-$_-e-\n"; + + if (//i) { + $nuke_body=0; + } + if (//i) { + $nuke_body=0; + } + if (//i) { + $nuke_body=0; + } + + if ($nuke_body) { + s/.*//gi; + next; + } + + if (//i) { + $nuke_body++; + } + if (//i) { + $nuke_body++; + } + if (//i) { + $nuke_body++; + } + + # fix max hist to 100 :-) + s/