Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


Closed Thread
  Search this Thread
Old 02-21-2010, 07:59 AM   #16
LQ Newbie
Registered: Nov 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs up How to allows some user to download denied extension


it's working
i put all entries together & removed -i then it start working



Sachin J.
Old 05-04-2010, 03:56 AM   #17
LQ Newbie
Registered: May 2010
Posts: 6

Rep: Reputation: 0

Please someone help me with this squid conf file.
I'am trying to block websites and specific extensions for all user exept for one ip.This is my confuiguration.

http_port 80
cache_mgr Administrator@proxy
visible_hostname proxy
cache_dir ufs c:/squid/var/cache 512 16 256
acl Query urlpath_regex cgi-bin \?
acl all src
acl manager proto cache_object
acl localhost src
acl PURGE method PURGE
acl to_localhost dst
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443
acl localnetwork0 src
acl localnetwork1 src

acl VIP src

acl forbiden_pages dstdomain "C:/squid/etc/blocked-sites.txt"

acl forbiden_extensions url_regex -i "C:/squid/etc/blocked-files.txt"

hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
coredump_dir c:/squid/var/cache

cache_mem 64 MB
dns_testnames localhost

http_access allow VIP forbiden_pages
http_access allow VIP forbiden_extensions
http_access deny all forbiden_pages
http_access deny all forbiden_extensions

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
http_access allow localnetwork0
http_access allow localnetwork1
no_cache deny QUERY
http_access deny all
http_reply_access allow all
icp_access deny all
Old 05-04-2010, 10:03 PM   #18
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
makadam, don't hijack threads, and don't post the same thing multiple times.

Last edited by win32sux; 05-04-2010 at 10:05 PM.

Closed Thread

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 can i block a site hanumanvce Linux - Security 5 02-03-2009 06:20 AM
how to block a particular web site bkcreddy17 Linux - Newbie 2 09-02-2008 01:52 PM
Can you block IE from using this site? resetreset LQ Suggestions & Feedback 28 07-29-2008 08:57 AM
how do you block access to a site? smarthouseguy Slackware 3 05-14-2006 10:09 AM
squid acl how to block all site except some mikmok Linux - Networking 1 12-22-2003 08:20 AM > Forums > Linux Forums > Linux - Security

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

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