LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-02-2004, 04:39 PM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Rep: Reputation: 46
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?
 
Old 09-02-2004, 07:49 PM   #2
acompw
LQ Newbie
 
Registered: Aug 2004
Distribution: Shrike & Tettnang
Posts: 18

Rep: Reputation: 0
Very interesting post. I can sure use any replies as well.
 
Old 09-03-2004, 06:30 AM   #3
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 30
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.
 
Old 09-19-2004, 02:25 PM   #4
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Ubuntu, Debian, SuSE, UnSlung, Android
Posts: 1,819

Original Poster
Rep: Reputation: 46
Thanks madluther. I will give that a shot when I get to work tomorrow and post my results.
 
  


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
block some sites nkutty Linux - Security 1 10-03-2005 04:15 AM
How to BLOCK SLEEZE SITES? saugato Linux - Security 3 02-11-2005 08:39 PM
IP Table help, Droping entire 200 block of ip's? Wide glide Linux - Security 2 12-03-2004 12:39 AM
allow certain sites and block rest all of them mcgrath Programming 1 11-24-2004 10:53 AM
how to block an entire IP range? enzo250gto Linux - Networking 2 05-01-2004 08:59 AM


All times are GMT -5. The time now is 07:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration