November 24, 2024, 12:36:28 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Blocking a site on squid  (Read 5594 times)

Offline zee_idowu

  • New Member
  • Posts: 3
Blocking a site on squid
« on: July 14, 2004, 04:13:10 PM »
Hello
Pls Zee would like to know how to block a site on a squid server.
Thanks

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Blocking a site on squid
« Reply #1 on: July 15, 2004, 06:07:49 AM »
The below method is used to block websites.. containing words.. or url , replace xxxx with the words you want to block.

Code: [Select]
acl badURL url_regex -i <urls xxxx xxxx xxxx xxxx xxxx>
http_access deny badUrl
http_access allow myNet
http_access deny all