LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2011, 04:26 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
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
 
Old 10-15-2011, 05:51 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 11:34 AM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 09:33 AM
Squid IP BLOCKING secrets Linux - Networking 4 06-14-2007 11:36 AM
Blocking msn with squid? mago Linux - Software 2 03-06-2006 01:54 PM
squid website blocking? belkens Linux - Networking 2 12-11-2004 08:34 AM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration