Websites Blocking

General discussion about PLUC and Linux in Pakistan.
M.anwar
Cadet
Posts: 3
Joined: Wed Nov 22, 2006 5:33 pm
Location: Karachi
Contact:

Websites Blocking

Postby M.anwar » Wed Nov 29, 2006 5:16 pm

anybody can tell me,

how to deny some websites from the squid (squid.conf)?
Thanks
M. Anwar

kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Postby kbukhari » Wed Nov 29, 2006 5:27 pm

acl bsite dstdomain .yahoo.com
http_access deny bsit
http_access allow <lan acl>
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com

Saad Khan
Company Havaldaar Major
Posts: 155
Joined: Sun Jun 11, 2006 6:19 pm
Location: Karachi

Postby Saad Khan » Thu Nov 30, 2006 12:27 am


irfanbhatti
Havaldaar
Posts: 145
Joined: Fri Jun 03, 2005 12:19 pm
Location: Rawalpindi Islamabad
Contact:

Postby irfanbhatti » Fri Dec 01, 2006 10:58 am

acl all src 192.168.0.0/255.255.255.0(your Lan)
acl apniisp dstdomain www.apniisp.com www.emusic.com
http_access deny apniisp
http_access allow all(Allowing your Lan)
Muhammad Irfan
03335246272

kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Postby kbukhari » Fri Dec 01, 2006 11:06 am

Dear irfanbhatti

i would like to advoice you to do not change acl all src 0.0.0.0./0
and always add a new asl for your lan i.e acl lan src 192.168.0.0/24


and defulat deny all and allow lan befor deny all
--

Syed Kashif Ali Bukhari

+92-345-8444420

http://sysadminsline.com

http://kashifbukhari.com

Abdul Wajid
Lance Naik
Posts: 43
Joined: Wed Nov 08, 2006 12:42 am
Location: Karachi
Contact:

Easiest way to block URL...

Postby Abdul Wajid » Fri Dec 08, 2006 5:27 pm

acl BlockURL url_regex -i sample.com
http_access deny BlockURL


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests