Particular Website

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

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

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

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

create an acl like
acl blocksite dstdomain .linuxpakistan.net
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 "linuxpakistan.net" into their browsers but not "google.com"?

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

Re:

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

Dear zakaferoz,
Salam,

Do not make Sticky post.

Best Regards.
Farrukh Ahmed

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

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

Code: Select all

acl user1 src 0.0.0.0/32 (your user ip here)
acl blocksite dstdomain .yahoo.com
http_access deny blocksite user1
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest