LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2009, 09:46 AM   #1
jai_nagarajan
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
How to block all websites except hotmail in squid


Any One know how to configure the squid to block all website except hotmail
 
Old 10-06-2009, 09:54 AM   #2
freelinuxtutorials
Member
 
Registered: Oct 2009
Posts: 70

Rep: Reputation: 21
create an acl e.g. Allowed Sites then include hotmail.com then deny all
something like:
e.g.

acl hotmailuser src 192.168.1.0/255.255.255.0
acl Allowed-Sites url_regex -i hotmail.com
http_access allow hotmailuser Allowed-Sites
http_access deny all


if you are not into CLI, install webmin, then configure your squid proxy server there

Last edited by freelinuxtutorials; 10-06-2009 at 09:55 AM.
 
Old 10-06-2009, 09:58 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by jai_nagarajan View Post
Any One know how to configure the squid to block all website except hotmail
acl hotmail dst ip_of_hotmail/netmask_of_hotmail
http_access allow hotmail
http_access deny all

get the ip of hotmail by pinging to hotmail site
i.e., ping www.hotmail.com
 
Old 10-17-2009, 01:41 AM   #4
jai_nagarajan
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Hai vinaytp

acl hotmail dst ip_of_hotmail/netmask_of_hotmail
http_access allow hotmail
http_access deny all

i tried this, but it would block all the website. I don't know what i did wrongly
i want to block all websites except 1 or 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid 2.5 how to block websites tarak420 Linux - Networking 1 08-01-2009 06:50 AM
how to block unwanted websites in redhat squid proxy gautamnarayan Linux - Server 1 02-26-2009 10:41 AM
Help me!! - I can't block websites using squid WiLLy85 Linux - Networking 4 11-12-2008 03:00 AM
In SQUID - Block all websites but a couple - but only apply to a particular IP range shifflav Linux - Networking 1 08-07-2007 10:54 AM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration