سلام به همگی !
اضافه کردن تبلیغات بالای گوگل و یا هر سایت دیگر (نکنید اینکار را با این سرعتهای فو ق العاده بالا) [squid.conf]
redirect_children 20
redirect_rewrites_host_header off
redirect_program /etc/redirect.pl
[redirect.pl]
#!/usr/bin/perl -wl$|=1; # not buffer
$Redirect = "
http://192.168.41.1/redirect.htm";
while (<>) { unless (m,(\S+) (\S+)/(\S+) (\S+) (\S+),) { $uri = ''; next; } $uri = $1; $uri = "301:$DENIED" if($uri eq 'http://www.google.com/');} continue { print "$uri";}
[redirect.htm]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script>
callingURL=parent.document.URL
linkURL=callingURL.substring(callingURL.indexOf('? ')+1,callingURL.length)
document.writeln('<frameset rows="100,*">')
document.writeln('<frame src="banner.htm/" scrolling=no marginwidth=0 marginheight=0 >')
document.writeln('<frame src="
http://209.85.148.105"></frameset>')
</script>
</head>
</html>
این کد را برای گوگل نوشتم اما با یه سری تغییر میتونید برا هر سایتی بنویسید