if i use the -i "usr/local/squid/etc/porn1" option i get the ff errors :
2004/04/22 16:11:12| squid.conf line 1472: acl porn1 url_regex -i "/usr/local/squid/etc/porn1"
2004/04/22 16:11:12| aclParseRegexList: Invalid regular expression 'if(w0){': Unmatched \{
2004/04/22 16:11:12| squid.conf line 1472: acl porn1 url_regex -i "/usr/local/squid/etc/porn1"
2004/04/22 16:11:12| aclParseRegexList: Invalid regular expression 'if(navigator.userAgent.indexOf('Mac')!=-1){document.write(imgN);': Invalid content of \{\}
2004/04/22 16:11:12| squid.conf line 1472: acl porn1 url_regex -i "/usr/local/squid/etc/porn1"
2004/04/22 16:11:12| aclParseRegexList: Invalid regular expression '}else{': Unmatched \{
2004/04/22 16:11:12| squid.conf line 1472: acl porn1 url_regex -i "/usr/local/squid/etc/porn1"
2004/04/22 16:11:12| aclParseRegexList: Invalid regular expression 'document.write('<applet': Unmatched ( or \(
[EMAIL PROTECTED] wrote:
In order to make squid read the list from afile you should enclose the filename in double quotes:
acl porn1 url_regex "/usr/local/squid/etc/porn1"
Otherwise squid will not read the urls from the file but match the filename itself.... You should also probably use "url_regex -i" (csase insensitive match).
Regards
Horst
Hement Gopal <[EMAIL PROTECTED] An: squid-users <[EMAIL PROTECTED]> its.ac.za> Kopie: Thema: [squid-users] blocking porn sites ? 22.04.2004 15:42
hi all
i am running Squid Cache: Version 2.4.STABLE1.
I've tried to implement a block to porn sites using the acls with the following entries :
acl porn1 url_regex /usr/local/squid/etc/porn1 http_access deny porn1 http_access allow all
but it doesn't seem to work.....(no errors....i am just able to browse to any site from the blocked url list)
can anyone assist?
rgds, hement gopal
Disclaimer
Diese E-Mail kann vertrauliche und/oder rechtlich gesch�tzte Informationen enthalten. Wenn Sie nicht der beabsichtigte Empf�nger sind oder diese E-Mail irrt�mlich erhalten haben, informieren Sie bitte sofort den Absender tele- fonisch oder per E-Mail und l�schen Sie diese E-Mail aus Ihrem System. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir haften nicht f�r die Unversehrtheit von E-Mails, nachdem sie unseren Einflussbereich verlassen haben.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately by call or e-mail and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We are not responsible for the integrity of e-mails after they have left our sphere of control.
