LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2008, 07:59 AM   #1
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Rep: Reputation: 31
block website


Sir

i am using squid in my office.

now i want to block accessing abc.com from ip 192.168.100.x

i mean this ip cant access abc.com

pls help me.


thanks
 
Old 09-19-2008, 09:54 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,115

Rep: Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915Reputation: 5915
Quote:
Originally Posted by soumalya View Post
Sir

i am using squid in my office.

now i want to block accessing abc.com from ip 192.168.100.x

i mean this ip cant access abc.com

pls help me.


thanks
Go here http://www.squid-cache.org/ and read the documentation. There are lots of how-tos on the internet, which tell you how to do this, as well as many threads on this site.
 
Old 09-19-2008, 10:06 AM   #3
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 150

Rep: Reputation: 29
There are so many sites where you actually get the answer straight away, but anycase .. here is some help ;-)

YOu need a line like the following in squid.conf

acl badsites dstdomain "/etc/squid/badsites.cfg"

then

http_access deny badsites

and then

http_access allow all


or whatever you specified as your lan


be sure to add all the sites in the file /etc/squid/badsites.cfg file
 
  


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
Why can't I use /etc/hosts.deny to block a website? CJS Linux - Networking 8 08-29-2008 12:39 PM
Want to block all website traffic for few IP but they will brows only 1 site aronnok Linux - Networking 1 05-22-2008 10:30 AM
How to block a Website in Squid winxlinx Linux - Networking 1 02-21-2006 05:40 PM
access the block website by certain IP space_beyond Linux - Security 1 06-03-2005 01:33 AM
How many ways can u block a website? debug019 Linux - Newbie 4 11-07-2004 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:08 AM.

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