با سلام و احترام

دوستان بنده انجمن رو گشتم درست متوجه نشدم حتی کد زیر رو تست کردم نشد
کد:
[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=utf-8">
<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>
می خوام از طریق اسکوئید یه کد اچ تی ام ال که یک متن داره بالای گوگل بذارم تا کاربران اطلاعیه رو ببینن

اگه آموزش واضحی هست بفرمایید ممنون میشم



موضوعات مشابه: