Particular Website

Taking care of your Linux box.

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
zakaferoz
Lance Naik
 
Posts: 15
Joined: Fri May 20, 2005 3:23 pm
WLM: zakaferoz
Yahoo Messenger: zedferoz
Location: Karachi

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

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

Dear zakaferoz,
Salam,

Do not make Sticky post.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron