<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Resource &#187; squid</title>
	<atom:link href="http://www.itresource.com.au/tag/squid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itresource.com.au</link>
	<description>Your one stop Information Technology Resource</description>
	<lastBuildDate>Mon, 21 Dec 2009 05:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Deny User Access to a Website Using Squid</title>
		<link>http://www.itresource.com.au/2008/08/31/deny-user-access-to-a-website-using-squid/</link>
		<comments>http://www.itresource.com.au/2008/08/31/deny-user-access-to-a-website-using-squid/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 13:10:45 +0000</pubDate>
		<dc:creator>Dave W</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.itresource.com.au/?p=384</guid>
		<description><![CDATA[There is often a requirement to block/deny user access to certain websites and this post shows how administrators can utilise Squid to achieve this: Squid is a popular open source web proxy server and web caching software. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to [...]]]></description>
			<content:encoded><![CDATA[<p>There is often a requirement to block/deny user access to certain websites and this post shows how administrators can utilise <strong>Squid</strong> to achieve this:</p>
<p>Squid is a popular open source web proxy server and web caching software. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to caching web, DNS and other network lookups for groups of people sharing network resources and (which is of most interest to us for the purposes of this post) by aiding security via traffic filtering. It was originally inteneded for Unix/Linux but has been ported to a number of platforms.</p>
<p>Squid has powerful ACL (access control list). The primary use of the ACL system is to implement simple access control. This can be used to deny a user from accessing particular site.</p>
<p>In order to do this we have to edit the Squid configuration file.</p>
<p>e.g. <strong># vi /etc/squid/squid.conf</strong></p>
<p>Search for `Access Controls&#8217; and append the following lines (in this example we are blocking access to &#8216;nastysite.com&#8217;):<br />
<strong>acl badsite dstdomain .nastysite.com<br />
http_access deny badsite</strong></p>
<p>Save and close the file, and then restart Squid:<br />
<strong># /etc/init.d/squid restart</strong></p>
<p> If required, you can specify more than one site to be blocked:<br />
<strong>acl badsite dstdomain .nastysite.com  .anothernastysite.com<br />
http_access deny badsite</strong></p>
<p>You can also use regex expressions to block access to more than one website. for example,  if you would like to deny access for any sites where the URL contains the word &#8220;twitter&#8221;, use the following ACL lines:<br />
<strong>acl badsitegroup url_regex -i twitter<br />
http_access deny badsitegroup</strong></p>
<p>More information on Squid commands can be found at: <a title="Squid Web Cache " href="http://wiki.squid-cache.org/FrontPage" target="_blank">http://wiki.squid-cache.org/FrontPage</a></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.itresource.com.au/2008/08/31/deny-user-access-to-a-website-using-squid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
