LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-15-2010, 01:20 AM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
How to deny download some file types on squid ?


How to deny download some file types on squid ?

I tried below in my squid.conf

acl blockfiles urlpath_regex -i "/etc/squid/src/blockfiles"
http_access allow localnet freesites !blockfiles


and in my /etc/squid/src/blockfiles

\.[Ee][Xx][Ee]$
\.[Aa][Vv][Ii]$
\.[Mm][Pp][Gg]$
\.[Mm][Pp][Ee][Gg]$
\.[Mm][Pp]3$
\.[Rr][Aa][Rr]$

I still able to download
 
Old 11-15-2010, 01:31 AM   #2
ganesh24pal@gmail.com
Member
 
Registered: Jun 2010
Location: Mumbai, India
Distribution: CentOS , Fedora, Open Suse
Posts: 193
Blog Entries: 5

Rep: Reputation: 3
HI,

Try this,

acl blockfiles urlpath_regex -i "/etc/squid/src/blockfiles"

http_access deny blockfiles

or

Can you send your configuration file.
 
Old 11-15-2010, 01:43 AM   #3
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
still not working.. below is my squid.conf

acl localnet src 172.16.0.0/16
acl badfiles urlpath_regex -i "/etc/squid/src/badfiles"
acl POST method POST


http_access allow localhost
http_access deny badfiles !POST
http_access deny localnet all aolyahoo baddomains
http_access deny all
 
  


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
How to deny download for some file types ? Winanjaya Linux - Server 1 04-18-2009 11:07 AM
download torrent file through squid soumalya Linux - Networking 1 11-26-2008 04:55 PM
Deny mp3 download in squid not working shan_nathan Linux - Server 0 06-07-2008 08:14 AM
block *.* file download using squid soumalya Linux - Security 6 12-21-2006 02:51 AM
Squid -- how can i deny download during working hours -- please help b:z Linux - Networking 1 05-05-2005 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:10 PM.

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
Open Source Consulting | Domain Registration