LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Blocking and disable via squid on the base of words... (https://www.linuxquestions.org/questions/linux-newbie-8/blocking-and-disable-via-squid-on-the-base-of-words-874998/)

indoroot 04-14-2011 09:37 AM

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.

TB0ne 04-14-2011 10:47 AM

Quote:

Originally Posted by indoroot (Post 4324541)
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.


All times are GMT -5. The time now is 12:55 AM.