Particular Website

Taking care of your Linux box.
Lance Naik
Posts: 15
Joined: Fri May 20, 2005 3:23 pm
Location: Karachi

Particular Website

Postby zakaferoz » Mon Nov 17, 2008 11:27 am

All Respected Viewers!

I am using Squid 2 under Red Hat Linux Enterprise 4. Please give me tip for restrict a particular IP for particular Website.

Thanks and regards

Zaka Feroz

Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore

Postby lambda » Mon Nov 17, 2008 12:52 pm

create an acl like
acl blocksite dstdomain
and then an http_access rule for it:
http_access deny blocksite
restart squid or run "squid -k reconfigure"
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "" into their browsers but not ""?

Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi


Postby LinuxFreaK » Wed Nov 19, 2008 9:31 am

Dear zakaferoz,

Do not make Sticky post.

Best Regards.
Farrukh Ahmed

Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad

Postby x2oxen » Thu Nov 20, 2008 2:03 am

Code: Select all

acl user1 src (your user ip here)
acl blocksite dstdomain
http_access deny blocksite user1
Muhammad Usman
Chemonics International

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest