LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   blocking in squid (https://www.linuxquestions.org/questions/linux-newbie-8/blocking-in-squid-908290/)

amartlk 10-15-2011 03:26 AM

blocking in squid
 
Hi

I have squid installed on centos 5.3 , i want to block uploading exe,zip,mp3 over internet,pls help

Amar

deep27ak 10-15-2011 04:51 AM

For this you need to do the following changes

Code:

#cd /etc/squid

#vi badpage.acl
\.[Exe][Xx][Ee]$
\.[Zz][Ii][Pp]$
\.[Mm][Pp]3$


No win the configuration file

Code:

#vi /etc/squid/squid.conf
acl blockpages url_regex "/etc/squid/badpage.acl"
http_access deny blockpages

And if you find this working mark the thread as SOLVED


All times are GMT -5. The time now is 01:21 AM.