Koozali.org: home of the SME Server

Manually blocking sites with Squid.

finchwizard

Manually blocking sites with Squid.
« on: March 10, 2005, 12:02:01 AM »
I'm after how to block sites manually.

I do not like SquidGuard, it's not worked in one of my installs, and I just find it easier to manually do it by hand.

I did it last year, but forgot to document it.

I have my files which are:

/etc/squid/block.txt
/etc/squid/unblock.txt etc

Then you need to specify in squid.conf your ACLs, which is something like.

-------------------------------------
acl block url_regex "/etc/squid/block.txt"

http_access deny block

-------------------------------------


Which is fine, but where do I add it into the /etc/e-smith/templates-custom/etc/squid/squid.conf/

??

Do I need to copy a file from the normal templates across, and then modify, or can I just make my own regardless.

Does it need to go in a particular place  of the squid.conf file, top, bottom etc, or can it go anywhere?

Cheers.

Any help would be great.

finchwizard

Manually blocking sites with Squid.
« Reply #1 on: March 10, 2005, 01:14:33 AM »
Nevermind, I got it all working.

I just needed to add the ACL's towards the top of the squid.conf file.

They were at the bottom and must have been a rule above them saying allow all or something.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Manually blocking sites with Squid.
« Reply #2 on: March 10, 2005, 08:50:11 AM »
finchwizard

> I do not like SquidGuard, it's not worked in one
> of my installs, and I just find it easier to
> manually do it by hand.

Just FYI Dansguardian can be easily configured to block specific sites as well as a whole lot more.
See my HOWTO or dungog (at cost).
...