Squid: url regex problem

Taking care of your Linux box.
Post Reply
mianmajidali
Cadet
Posts: 4
Joined: Mon Apr 07, 2008 12:18 pm
Location: Lahore
Contact:

Squid: url regex problem

Post by mianmajidali »

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
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

Try it like this...

acl others url_regex -i "/etc/squid/blacklist"
Regards
Abdulrehman
mianmajidali
Cadet
Posts: 4
Joined: Mon Apr 07, 2008 12:18 pm
Location: Lahore
Contact:

Post by mianmajidali »

I did this but not successful :(
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: Squid: url regex problem

Post by LinuxFreaK »

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
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

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
parag_7610
Cadet
Posts: 2
Joined: Tue May 12, 2009 4:15 pm
Location: pak

Post by parag_7610 »

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
Post Reply