Blokkeer url / websites via Squid proxy

Pagina: 1
Acties:

  • sontax
  • Registratie: December 2006
  • Niet online
.

[ Voor 99% gewijzigd door sontax op 23-10-2022 10:16 ]


  • sontax
  • Registratie: December 2006
  • Niet online
.

[ Voor 99% gewijzigd door sontax op 23-10-2022 10:16 ]


  • Simkin
  • Registratie: Maart 2000
  • Laatst online: 15:29

Simkin

Bzzzzz

How to deny a user from accessing particular site?
To block site called foo.com you need to add following two lines to your squid configuration file.
# vi /etc/squid/squid.conf

Search for `Access Controls' and append following two lines:
acl blocksites dstdomain .foo.com
http_access deny blocksites
Save and close the file. Restart Squid:
# /etc/init.d/squid restart
Let us say you would like to deny access for anyone who browses to a URL with the word "bar" in it. Append following ACL:
acl blockregexurl url_regex -i bar
http_access deny blockregexurl

Save and close the file.
Ga je diep schamen als deze methode gewoon werkt

  • BitProcessor
  • Registratie: Februari 2001
  • Laatst online: 01-03 23:18
sontax schreef op maandag 05 mei 2008 @ 19:25:
Ik heb nog een aantal andere geprobeert en het lukt echt niet.
Aangezien ik er niet heel veel verstand van heb denk ik dat er iets verkeerd is met mijn config.

Iemand die een simpele en zo kaal mogelijke config heeft zodat ik zelf langzaam alles kan toevoegen wat ik wil ?
ik reeds lange tijd een config draaien met squid + squidGuard

squidGuard vind je hier :

http://www.squidguard.org/

*Kan je mensen gaan redirecten naar een pagina met info waarom ze zijn geblocked etc...
*Je kan groepen aanmaken : vb full access, limited access etc..
*Je kan blacklists gaan aanleggen van sites die niet mogen worden gebruikt (bv pr0n)
*Deze blacklists kan je gratis halen op diverse websites

Config is goed te doen, gewoon goed de doc volgen...

"I think there is a world market for maybe five computers" - Thomas Watson, chairman of IBM, 1943


  • sontax
  • Registratie: December 2006
  • Niet online
.

[ Voor 111% gewijzigd door sontax op 23-10-2022 10:16 ]