Computing.Net > Forums > Linux > Block MSN with Squid

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Block MSN with Squid

Reply to Message Icon

Name: Jeronimox
Date: February 14, 2006 at 05:19:56 Pacific
OS: Debian sarge 3.1
CPU/Ram: 800 MHz
Product: clon
Comment:

Dear all, is it possible to block MSN sessions from my LAN's users using only a SQUID proxy connected to Internet ???

Any idea ????

Thanks a lot

Jeronimox



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: February 14, 2006 at 07:02:35 Pacific
Reply:

You can block a few sites with squid by
either adding them to squid.conf or creating
another file containing a list of restricted
sites.

Editing /etc/squid/squid.conf; add lines
similar to the following:
acl msn url_regex messenger.hotmail.com
http_access deny msn

That should deny all access to
messenger.hotmail.com which is what MSN
uses.

Creating an ACL list; create a file
called /etc/squid/squid-block.acl and put in
it what you want to deny access to, eg:
messenger.hotmail.com
.msn.com
microsoft

The above will deny access to
messenger.hotmail.com, anything..msn.com and
any URL with microsoft in it. Then in your
squid.conf file:
acl bad url_regex
"/etc/squid/squid-block.acl"
http_access deny bad

NB If you start blocking sites with words
like "sex" in them you may have to create
another file of accepted URLs like
www.middleSEXuniversity.edu.uk.

PS The above methods will only work if your
users are using MSN through your proxy. If
they are going straight out through a
gateway you will have to use firewall rules
instead.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Block MSN with Squid

Blocking site with squid www.computing.net/answers/linux/blocking-site-with-squid/22562.html

how to make proxy with squid www.computing.net/answers/linux/how-to-make-proxy-with-squid/25470.html

Blocking MSN,Yahoo www.computing.net/answers/linux/blocking-msnyahoo-/21796.html