1828225 Members
2387 Online
109975 Solutions
New Discussion

Squid

 
deepakinit
Advisor

Squid

HI all,
I can able to block a specifice website in squid.But i cannot block all the websites.Can any one help me to block all the websites in squid.

Thanks & Regards,
B.Deepak Kumar

2 REPLIES 2
Stuart Browne
Honored Contributor

Re: Squid

All pages for a given domain?

or everything?

If the first, something like this:

acl domain_block url_regex ^http://*.domain.com
http_access deny domain_block

That can be expanded or more defiend should you so desire.

If you want to block everything, then just don't have any 'http_access allow' statements for your network.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: Squid

Err, typo..

acl domain_block ^http://.*.domain.com

Regular expression..
One long-haired git at your service...