how do I block sexy web site in squid

I am using Redhat 5.2 with squid (Squid/2.1.PATCH2) installed. How can I config my squid conf file to block sexy web site? if not, Can that be done by some other program ?

edmundliAsked:
Who is Participating?
 
rbrConnect With a Mentor Commented:
Use the follwing lines

acl adults dstdomain domain1 domain2 ...

http_access deny adults


where domain1 ... are all domains you want to block. (The problem will be to find all domains)
0
 
edmundliAuthor Commented:
Can you tell me, more about this ? Do I have to create domain1, domain2 files first ? What is the pattern ?

0
 
rbrCommented:
No domain1 are the domains you want to block
e.g penthouse.com ....

0
 
edmundliAuthor Commented:
so, if we have a lot of web sites e.g 50 web sits to block, I have to type in to squid.conf files. Can I group those web site into a single file ?

0
 
rbrCommented:
Sorry I don't understand you question. The squid.config is one file. Yo can do the following.
acl adults1 dstdomain domain1 domain2 ... domain10
acl adults2 dstdomain domain11 domain12 ... domain20
..
..
..
http_access deny adults1
http_access deny adults2
..
..
..
0
All Courses

From novice to tech pro — start learning today.