Computing.Net > Forums > Linux > Using Squid

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using Squid

Reply to Message Icon

Name: Secrets
Date: June 17, 2003 at 14:17:27 Pacific
OS: Linux
CPU/Ram: 1.7
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: mcse_patel
Date: June 18, 2003 at 02:50:28 Pacific
Reply:

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.conf

i 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


0

Response Number 2
Name: Brad
Date: June 20, 2003 at 07:17:08 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Using Squid

mail relay using squid www.computing.net/answers/linux/mail-relay-using-squid/15736.html

using squid restrict one system www.computing.net/answers/linux/using-squid-restrict-one-system/26379.html

squid trouble www.computing.net/answers/linux/squid-trouble/30381.html