urlpath_regex is not denying...
I have RHEL 4 installed on my machine which i wanted to use as a proxy. My proxy(squid-2.6 STABLES-3.el5) is running properly to some extend. I was trying to use 'urlpath_regex' to block '.jpg, .mp3...etc' but this does not deny at all. what might be the reason? the acl looks like this...
: : acl download-block urlpath_regex -i \.jpg$ \.mp3$ http_access deny download-block : : thanks MR |
Can you mention your http_access area ?
The syntax seems to be ok. The problem could be http_access area. |
Here's my acls and http_access area.
acl our_networks src 10.180.0.0/255.255.255.0 acl blocked_list url_regex -i "/etc/squid/banned.list" deny_info ERR_BANNED_list1 blocked_list acl download-block urlpath_regex -i \.jpg$ \.mp3$ acl blocked_domains dstdom_regex -i "/etc/squid/bad_domains.list" deny_info ERR_BANNED_baddomains blocked_domains #acl accesstime time 9:00-17:00 acl ncsa_users proxy_auth REQUIRED http_access deny blocked_list http_access allow ncsa_users http_access deny download-block http_access deny blocked_domains #http_access allow our_networks accesstime http_access allow our_networks http_access deny all ==== Thanks.. |
My squid configuration is similar and it is working fine.
You should wait for some expert to come up. I do not find anything wrong. |
I have fedora 12 installed on my machine
My proxy(squid-3.1) is running . : : acl flockfiles urlpath_regex -i \.exe$ \.mp3$ http_access deny flockfiles : bur squid doesnt block didi you do your problem? if yes please help me Seymur |
Can you use url_regex instead of using urlpath_regex and see if it works?
|
squid urlpath_regex problem
I have fedora 12 installed on my machine
My proxy(squid-3.1) is running . : : acl flockfiles urlpath_regex -i \.exe$ \.mp3$ http_access deny flockfiles : bur squid doesnt block didi you do your problem? if yes please help me mmy squit works at home normally but doest work at work Seymur |
Why would you want to post the same question again without even considering the previous post?
|
I like block different users different sites
Example I have 3 user list and 3 file with block site names
acl group1 src 192.168.0.2 192.168.0.3 192.168.0.4/24 acl group2 src 192.168.0.5 192.168.0.6 192.168.0.7/24 acl group3 src 192.168.0.8 192.168.0.9 192.168.0.10/24 and acl blocksites1 url_regex -i "/etc/squid/block1.txt" acl blocksites2 url_regex -i "/etc/squid/block2.txt" acl blocksites3 url_regex -i "/etc/squid/block3.txt" I like block blocksites1 for group1, blocksites2 for group2, blocksites3 for group3, help me please |
All times are GMT -5. The time now is 02:59 PM. |