May 25, 2024, 06:20:54 PM

News : Linux Help Community Forum..

Author Topic: Allow blocked sites to some IP's  (Read 4825 times)

Offline ilyasmd

  • New Member
  • Posts: 1
Allow blocked sites to some IP's
« on: September 29, 2009, 08:22:04 AM »
    I am able to block sites using following.

acl PornSites url_regex "/usr/local/squid/etc/pornlist"
http_access deny PornSites

I would like to allow admin users or IP's to access blocked sites also, can anyone help..

Thanks in advance.


Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Allow blocked sites to some IP's
« Reply #1 on: September 30, 2009, 07:25:01 AM »
1. Create an ACL that give allowed IP Addresses like :

acl my_net src
acl allow_all src
acl PornSites url_regex "/usr/local/squid/etc/pornlist"

2. Apply HTTP access policy as give below :
http_access allow allow_all
http_access deny PornSites
http_access allow my_net

3. Restart squid proxy service and check you settings.

Best of Luck