Squid: url regex problem

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

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

mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

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

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:

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

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

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

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

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

parag_7610
Cadet
Posts: 2
Joined: Tue May 12, 2009 4:15 pm
Location: pak

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 0 guests