Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to block my user from using certain sites for this purpose i have added the
acl blocksites url_regex [-i] /etc/squid/sites.txt ^http://
in the squid but it is not working.

Hi:
I am also new to linux and learning it.
here below is the steps you follow through which u can restrict specified sites on squid.BLOCKING Sites and getting it from a .TXT file
=====================================
Create a .TXT file with a single site name for each line
/usr/local/squid/etc/blocked.txt
(give Read Permission)Define an ACL
============
define ACL blocked url_regex "/usr/local/squid/etc/blocked.txt"http blockages
==============
http_access deny blocked
(Place http_access deny blocked line above all other http_access lines)A Custom error
==============
(A Custom error page can be set for above error as describe below)
deny_info ERR_BLOCKED_SITE blocked(Put the file in HTML format named ERR_BLOCKED_SITE file in /etc/squid/error)
===============
no need to restart squid just give
'squid -k reconfigure' it will be re-initialise your squid.confi don't know JAVA very good else where i want to have a web-based html page through i can edit the /usr/local/squid/etc/blocked.txt
and save it.if anyone can help me to get this done.
Thanks in advance
Patel

Use Webmin to configure squid
www.webmin.com
After you installed the package go to
http:\\servername:10000

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |