Koozali.org: home of the SME Server

exclude access to web site - quick and easy

Offline brianr

  • *
  • 990
  • +2/-0
exclude access to web site - quick and easy
« on: August 26, 2007, 12:02:10 PM »
I need to exclude a couple of web sites from access by anyone on a network.  I realise I could use the dansguardian or squidguard contribs, but would like to do it in a simple way initially.

I tried adding

127.0.0.1 www.ebay.com

to the /etc/hosts

file, but it does not seem to effect the workstations (although the server itself can no longer access the site).

I guess the answer is related to the dnscache, about which I know very little, anyone any good ideas?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: exclude access to web site - quick and easy
« Reply #1 on: August 26, 2007, 01:10:43 PM »
I guess the answer is related to the dnscache, about which I know very little, anyone any good ideas?
Are you forcing your users to use a proxy to connect to the internet?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline brianr

  • *
  • 990
  • +2/-0
Re: exclude access to web site - quick and easy
« Reply #2 on: August 26, 2007, 09:13:20 PM »
Are you forcing your users to use a proxy to connect to the internet?

I have the "automatically detect proxy settings" unset on the PC ('cos they complain it takes time!), but have the "transparent" proxy set in the server.  The server is server+gateway.

B.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........