Hi,
Your acl should be like below .....
acl portblock port "getport.txt" # list all the port for blocking in getport.txt file
http_access deny portblock
acl noblock url_regex -i "allunblock.txt" # list all url which should not be blocked.
http_access allow noblock
acl chat url_regex -i "chat.txt" # list all chat servers like pager.yahoo.com; messenger.hotmail.com
http_access deny chat
acl porno url_regex -i "allblock.txt" # list all bad languages, porn sites, & others for blocking
deny_info ERR_NO_PORNO porno # for the urls listed in allblock.txt display the Porno error message. See attached file.
http_access deny porno
Open the attachment with any text editor & fill your company details .
Some times squid blocks the good web sites. so i included aclname "noblock" line. If the users are complining that some websites are blocked you can put them in "allunblock.txt" file.
regards
rajeev H M
----- Original Message -----
From: Serge Bianda
To: 'H M Rajeev'
Sent: Saturday, January 05, 2002 10:50 PM
Subject: RE: [squid-users] Client IP address in ERR_ACCESS_DENIED file
Hello HM:
I'm not answering your question, but I have a problem with my squid server, I'm trying to filter or block some web site just like you did, but I am not able to do so, can you please tell me what exactly you did and how you setup your own ERR_ACCESS_DENIED file, and block fine in your squid.conf file.
Thanks
Serge
-----Original Message-----
From: H M Rajeev [mailto:hmrajeev@ybil.com]
Sent: Saturday, January 05, 2002 7:50 AM
To: squid-users@squid-cache.org
Subject: [squid-users] Client IP address in ERR_ACCESS_DENIED file
Hello,
I am running squid2.3.stable 4. I Have blocked some website using acls and also customized the ERR_ACESS_DENIED error file.
Is it possible to display the client system IP address in ERR_ACCESS_DENIED.
Thanks in advance
regards
rajeev
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:39 MST