Quote:
Originally Posted by amitkush
Hello all!
I have HP Proliant ML350 G5 running RHEL AS4. How can I configure squid to block the contents based on keywords or block URLs to impose restrictions.
Also, can I impose restrictions by declaring ACL using IP address and MAC address together? If yes, then how?
Thanks
Amit
|
I'd suggest reading the squid and squid-guard documentation. For example:
To deploy the web-site blocking mechanism in Squid, add the following entries to your Squid configuration file (in my system, it's called squid.conf and it's located in the /etc/squid directory):
acl bad url_regex "/etc/squid/squid-block.acl" http_access deny bad
The file /etc/squid/squid-block.acl contains web sites or words you want to block. You can name the file whatever you like. If a site has the URL or word listed in squid-block.acl file, it won�t be accesible to your users.
Be aware that if you use keywords to block on (say playboy, or sex), that by blocking sites containing the word 'sex', you will also block sites such as
http://www.sussexcounty.com, etc. To resolve this problem, you can put those sites in a special file called squid-noblock.acl:
http://www.sussexcounty.com
The documentation you already have with Squid tells you more in greater detail.