LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Blocking iPod browsers on squid (https://www.linuxquestions.org/questions/linux-software-2/blocking-ipod-browsers-on-squid-829684/)

crackyblue 09-01-2010 04:36 AM

Blocking iPod browsers on squid
 
Hi,

Im trying to block iPod browsers or any similar mobile phones to access the internet.. I got this useragent.log entries

"Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us)
AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16"



I created an acl like

acl mobile browser -i iPod

to block all versions of iPod and deny it via http_access, but didn't block. Any ideas?



Thanks

bathory 09-02-2010 04:25 AM

Hi,

You should use something like:
Code:

acl mobile browser -i (.*?)iPod
Regards


All times are GMT -5. The time now is 11:03 PM.