LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   get Squidguard to block entire countries web sites? Possible? (https://www.linuxquestions.org/questions/linux-software-2/get-squidguard-to-block-entire-countries-web-sites-possible-225866/)

Pcghost 09-02-2004 04:39 PM

get Squidguard to block entire countries web sites? Possible?
 
Lately I have discovered that virtually nothing worth a crap is being hosted in several key countries. I would like to configure SquidGuard to block all sites with specific suffixes (like .ru for example). Adding wildcards to the database doesn't seem to work. I tried things like *.*.ru and so forth, but it has no effect. Does anyone know of a way to block an entire suffix using SquidGuard or another Squid redirector?

acompw 09-02-2004 07:49 PM

Very interesting post. I can sure use any replies as well.

madluther 09-03-2004 06:30 AM

We use squid and dansguardian at work, so this may not be exactly what your looking for, but I thought someone may find it useful. For global domain blocks like this, a couple of lines in the http_access section of squid.conf does the job for us.

Code:

# define an acl named blockedurls
acl blockedurls dstdomain .ru .foo.bar .foo.net
http_access deny blockedurls

HTH

Mad.

Pcghost 09-19-2004 02:25 PM

Thanks madluther. I will give that a shot when I get to work tomorrow and post my results.


All times are GMT -5. The time now is 09:31 PM.