LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-02-2008, 06:29 AM   #1
farrukhndm
Member
 
Registered: Mar 2008
Location: Pakistan
Distribution: Fedora,Centos,RHEL
Posts: 75

Rep: Reputation: 15
Block any download type of file in squid.......


i have added one acle rule in
[root@mail ~]#
vi /etc/squid.conf

#####after given line i have added my acl####
#Recommended minimum configuration:

acl all src 0.0.0.0/0.0.0.0
###### To Block exe and other extenshion over internet ######

acl bad_suffixes url_regex "/etc/squid/bad_suffixes"
http_access deny bad_suffixes

i have added these extension in bad_suffixes
root#vi /etc/squid/bad_suffixes
.*\.exe$
.*\.bat$
.*\.mp3$
.*\.com$
.*\.zip$
.*\.mp3$
.*\.rar$
.*\.tgar$



last time when i used it it work but with this it also blcok my MSN and yahoo Messnger over network ..................

But now it dont work.......


Please disucess the best way to blcok the .exe.etc files and it it will not block our messengers....
 
  


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
Squid block by mime-type the live streaming mago Linux - Networking 2 08-25-2008 12:45 PM
To restrict maximum download file size in Squid proxy satishap Linux - Security 3 05-23-2008 02:09 AM
block *.* file download using squid soumalya Linux - Security 6 12-21-2006 02:51 AM
Download ,run file type wazntme Linux - Newbie 1 10-27-2005 11:57 AM
Cannot not run executable jar file after set content type for download antony_csf Programming 1 12-08-2004 12:22 AM


All times are GMT -5. The time now is 08:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration