nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-28-2006, 09:24 AM
Junior Member
 
Join Date: Jul 2006
Location: Philippines
Posts: 1
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
Sponsored Links
  #2 (permalink)  
Old 07-29-2006, 05:07 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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 11-18-2006, 06:00 PM
Junior Member
 
Join Date: Nov 2006
Posts: 1
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

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 12:13 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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