nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to block sites in Squid

This is a discussion on How to block sites in Squid within the Linux software forums, part of the Linux Getting Started category; Hi! I'd like to know how can I block sites in squid? I already applied the the codes in squid.conf ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-07-2006, 08:24 AM
Junior Member
User
 
Join Date: Jul 2006
Location: Philippines
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
joproz
Send a message via Yahoo to joproz
Default How to block sites in Squid

Hi!

I'd like to know how can I block sites in squid?
I already applied the the codes in squid.conf but still site is open.
I created and listed the sites in /etc/squid/squidblock.acl file

Code:
acl blocksites url_regex "/etc/squid/squidblock.acl"
http_access deny blocksites

Reply With Quote
  #2 (permalink)  
Old 29-07-2006, 04:07 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

Add following acl:

Code:
acl blocksites url_regex "/etc/squid/squid-block.acl"
http_access deny blocksites
And put domain names in /etc/squid/squid-block.acl file (for example block yahoo.com or add words such as sex or gambling etc):
Code:
.yahoo.com
.foo.com
sex
Save and restart squid
Reply With Quote
  #3 (permalink)  
Old 18-11-2006, 05:00 PM
Junior Member
User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
soumalya
Default how to block trillion and rediffbol messenger

how to block trillion and rediffbol messenger from squid-block.acl

using url
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to Block Ultrasurf laluvirtual Linux software 9 15-06-2008 04:21 PM
How to block windows http request in squid me_prasoon Networking, Firewalls and Security 3 21-11-2007 11:01 AM
Iptables block ip address raj Getting started tutorials 0 05-05-2007 01:01 AM
How to block gtalk messenger through squid bubloob_13 Linux software 0 16-04-2007 11:59 AM
Downloading Linux distro or kernel from indian mirror sites rockdalinux Getting started tutorials 1 28-01-2006 01:08 PM


All times are GMT +5.5. The time now is 11:41 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38