Squid: url regex problem

Taking care of your Linux box.

Squid: url regex problem

Postby mianmajidali » Sun Feb 15, 2009 5:00 pm

Assalam-o-Alaikum to all
i have problem with regexurl
there is file configuration of squid.conf

acl others urlpath_regex "/etc/squid/blacklist"

and in http_access tag i entered

http_access deny others

and did entered the URLs in the file names as blacklist, but it dont working.
please guid me
thanks
mianmajidali
Cadet
 
Posts: 4
Joined: Mon Apr 07, 2008 12:18 pm
Website: http://www.os-co.biz
WLM: mian_majid@msn.com
Yahoo Messenger: mian_majidali@yahoo.com
Location: Lahore

Postby mejam » Sun Feb 15, 2009 5:09 pm

Try it like this...

acl others url_regex -i "/etc/squid/blacklist"
Regards
Abdulrehman
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

Postby mianmajidali » Sun Feb 15, 2009 10:47 pm

I did this but not successful :(
mianmajidali
Cadet
 
Posts: 4
Joined: Mon Apr 07, 2008 12:18 pm
Website: http://www.os-co.biz
WLM: mian_majid@msn.com
Yahoo Messenger: mian_majidali@yahoo.com
Location: Lahore

Re: Squid: url regex problem

Postby LinuxFreaK » Mon Feb 16, 2009 9:03 am

Dear mianmajidali,
Salam,

mianmajidali wrote:i have problem with regexurl
there is file configuration of squid.conf

acl others urlpath_regex "/etc/squid/blacklist"

and in http_access tag i entered

http_access deny others

and did entered the URLs in the file names as blacklist, but it dont working.
please guid me


I think you need to use dstdom_regex

FYI, http://www.visolve.com/squid/squid24s1/ ... tdom_regex

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 » Mon Feb 16, 2009 10:48 pm

where you applying this rule above all other acls or below.. paste your ACLs as it is in your squid.conf
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

Postby parag_7610 » Fri Jul 03, 2009 3:10 pm

acl whitelist url_regex -i "/opt/whitelist.txt"
http_access allow whitelist

acl redlist url_regex -i "/opt/redlist.txt"
http_access deny redlist

then create redlist.txt in /opt and put the word's eg: sex xxx or adult porn etc
parag_7610
Cadet
 
Posts: 2
Joined: Tue May 12, 2009 4:15 pm
Location: pak


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron