How To Control Access To Unwanted Websites Using URL Blacklist With SafeSquid Proxy Server
How To Control Access To Unwanted Websites Using URL Blacklist With SafeSquid Proxy ServerSafeSquid - Content Filtering Internet Proxy, has many content filtering features that can be used to decide who is allowed what, when and how much on the net. In this tutorial I will describe how to control access to unwanted categories of websites, by using URL Blacklist database with SafeSquid Proxy Server. Note: Also see the following articles : SafeSquid allows the administrators to use plain text urlblacklist very easily and with a desired level of sophistication. The site http://www.urlblacklist.com maintains a well categorized list of various web-sites and pages like porn, adult, webmail, jobsearch, entertainment, etc. This is an excellent resource for an administrator seeking to granularly enforce a corporate policy that allows or disallows only certain kinds of web-sites to be accessible by specific users, groups or networks. You can use this feature by downloading the trial urlblacklist database from HERE. Copy the downloaded trial database to /usr/local/bin directory on the SafeSquid Server, and untar the files cd /usr/local/src This will create a directory 'blacklist'. Create a directory 'urlbl' in /opt/safesquid and copy the contents of blacklist in this directory. mkdir /opt/safesquid/urlbl Next, restart SafeSquid /etc/init.d/safesquid restart In SafeSquid GUI Interface, click on URL blacklist in the Top Menu It should display a list of all the categories copied to the urlbl directory. Here, you can query the database to find out if a website is listed under any category. For example, to find out what category hackerstuff.com belongs to, type hackerstuff.com in the Domain field and click on Submit below. You should get a screen similar to this - Note: This section only allows you to query the database. Selecting or unselecting a category does not enable or disable it. Next, click on Config, and from the drop-down menu, select URL blacklist and click on Submit. This is where you allow or deny access the a category, either to a specific Profile, or globally. By default, the section is disabled. Enable the section by selecting Enabled - Yes. Globally block: Categories porn, adult and dating Note: Creating users and user profiles has been described in How To Set Up Internet Access Control And Internet Filtering With SafeSquid Proxy Server. To achieve the above, click on Add under Deny sub-section, and create the following rules -
In the first rule, since the Profiles field is left blank, it will apply to every user, and block access to websites listed under adult, porn and dating categories. In the second rule, the Profiles is !HRD. The '!' before HRD means NOT HRD, or everyone EXCEPT HRD. So, requests for websites listed under jobsearch will be allowed only to HRD Profile and denied to all other profiles. The third rule is similar to the second rule and allows access to websites listed under banking and financial only to Finance Profile.. When a user requests for a website that is blocked by URL Blacklist, a template similar to the below is displayed - TIP: You might find that many times a website gets blocked since it is listed under a denied category, but you would want to allow access to it. You have two options to achieve this: Option 1: vi /opt/safesquid/urlbl/ads/domains Option 2:
TIP: You can also create your own customized categories easily. Create a directory in /opt/safesquid/urlbl and name it what you want the category to be called, e.g. 'custom', and create a 'domains' file in this directory, listing one website per line. mkdir /opt/safesquid/urlbl/custom
|






![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)




Recent comments
2 days 14 hours ago
4 days 11 hours ago
5 days 13 hours ago
6 days 55 min ago
6 days 16 hours ago
1 week 2 hours ago
1 week 6 hours ago
1 week 12 hours ago
1 week 2 days ago
1 week 2 days ago