How to block urls for specific ip in squid
Hi,
I want to block some urls (yahoomail,gmail |
How to block urls for specific ip in squid
Hi,
I am using squid 2 as my proxy. I want to block the urls (yahoo mail, gmail) only for some systems in the network. How can i do this in squid Can any one help me. |
Quote:
1 - make an ACL for the subnet/range you want to block the URL from... 2 - make an ACL for the URLs you wish to block... 3 - create an "http_access deny" rule using those two ACLs... for example: Code:
acl banned_clients src 192.168.12.0/255.255.255.0 here's another example: Code:
acl banned_clients src 192.168.12.12-192.168.12.65 |
within squid you can just use the dstdomain directive in an acl to deny domains.
Code:
acl DSTDOMAIN dstdomain .deny.com |
To the OP: posting a question twice in a row with an interval of n minutes verges on the edge of spamming. Please be more careful. TIA
|
Quote:
It worked & Thankyou very much |
Please clear my doubt
Quote:
Thanx for your steps which u have posted actually i was also searchinig this type of configuration. But i have little problem hope u may favour me, actually i'm new in linux and having no experiance. so could u tell me where i have to edit these steps in squid.conf file actually i have check in "ACCESS CONTROL" but i have found no such thing in it only this line was mention something like this in access controls ie: #Default configuration: http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR # CLIENTS # http_access deny all In above lines where i have to edit ur steps. Please assist me. Thanx CJ Cheema:confused: mail me: cj_cheema@hotmail.com |
Quote:
|
Thanx for ur assistance
Quote:
Hi Win32sux thanx for ur assistance. Now it is working. Thanx again Regards CJ Cheema :p |
Creatind block list
Hi Pals,
Is there a option to create a file for block list and that can be linked to squid.conf. So whenever i want to add a site name in block list i can edit that external file and will be easy to handle.... |
Quote:
|
All times are GMT -5. The time now is 05:12 PM. |