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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rbrCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.