LinuxQuestions.org
Review your favorite Linux distribution.
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 04-14-2011, 09:37 AM   #1
indoroot
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Blocking and disable via squid on the base of words...


i am experimenting with my squid config . but i dont know how to make this confg to work.

I wanted to Block the websites on term of the "words''

like if any one is accessing to Porn site then the words that come out of porn is blocked. [ mostly used examples]

note:i can blocked single site at a time.

second if there is user 10.10.10.21 is downloading MP3,AVi,mpg how can i not allowed him to download that both ways via right clicking download and direct download.
 
Old 04-14-2011, 10:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,887

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by indoroot View Post
i am experimenting with my squid config . but i dont know how to make this confg to work.

I wanted to Block the websites on term of the "words'' like if any one is accessing to Porn site then the words that come out of porn is blocked. [ mostly used examples] note:i can blocked single site at a time.
Check the squid documentation. There is at least one way to create an ACL, based on a regex. That regex can contain whatever words/symbols/patterns you can come up with. srcdom_regex is one example, you can find it here:
http://www.squid-cache.org/Doc/config/acl/
Quote:
second if there is user 10.10.10.21 is downloading MP3,AVi,mpg how can i not allowed him to download that both ways via right clicking download and direct download.
What do you mean "direct download"? If they're clicking a button on a page, or right-clicking, they're both being downloaded via web browser.
 
  


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 10:34 AM
Accented latin words in url_regex of squid does not work Fabio Paolini Linux - Networking 0 05-28-2010 04:40 PM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 08:33 AM
Squid specific words blocking lakshan Linux - Software 1 07-11-2006 08:12 PM
squid block bad arabic words shafey Linux - Security 1 12-21-2005 12:49 AM


All times are GMT -5. The time now is 12:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration