How to Block a Website Using Squid

How to Block a Website Using Squid thumbnail
Squid can prevent users on the network you administer from accessing certain sites.

Squid-Cache, or simply Squid, is a tool network administrators can use to block local network access to particular websites. Blocking particular sites, or groups of sites, requires direct editing of the Squid configuration files.

Instructions

    • 1

      Install Squid by downloading the binary package for your operating system and following the system-specific directions in Squid's documentation (see Resources).

    • 2

      Open the Squid configuration file, squid.conf, usually located in /usr/etc/squid, and add the following two lines:

      acl bad url_regex "/etc/squid/squid-block.acl"
      http_access deny bad

      The filename in the quotes can actually be named and located whatever and wherever you want--you're going to create the file yourself in the next step.

    • 3

      Create the file referenced in Step 2. Anything you put in this file will be blocked by Squid. For example, adding lines like:

      .com
      xyzzy.org
      sex

      will block all sites with ".com" addresses; the specific site "xyzzy.org"; and all sites containing the word "sex." Save the file and close.

    • 4

      If this is your first time running Squid, create the program's swap directories by running the program from a terminal with the -Z option: "squid -z".

    • 5

      Run Squid with the simple "squid" command.

Related Searches:

References

Resources

  • Photo Credit network connection image by stresskiller from Fotolia.com

Comments

You May Also Like

  • How to Block a Website in Internet Explorer

    Blocking websites in Internet Explorer can come in especially handy when children are surfing the Web.

  • How to Block Sites in Squid

    Squid is a Web proxy server and Web cache daemon (meaning it runs as a background application) that is supported by UNIX...

  • How to Use Squid to Block Websites

    Squid is an open source web proxy server and caching software. It has a variety of uses for speeding up access time...

  • How to Block Porn Websites From My Child

    Children are seemingly exposed to more information with the advent of new technologies. You may be hard-pressed to find a child without...

  • How to Block Sites Using Squid

    Squid is a free, open source HTTP proxy used by systems administrators and ISPs to minimize bandwidth by caching common Web pages...

  • How to Block Websites in Squid

    Squid is an open-source Web cache and Web proxy server software that is mostly run on a UNIX server. It is primarily...

  • How to Set up a Squid Proxy Server

    Proxy server is a computer system running an application, which acts as an intermediate program that relays requests from the client computers...

  • How to Use the Wall on Your Facebook Page

    Facebook is a great website for keeping in touch with friends and family members. Certain elements of the site, such as the...

  • How to Block a Website in All Web Browsers

    You may want to block a website in your Web browser for many reasons. The site may be malicious or you may...

  • How to Block Sex Sites

    Letting your children use the Internet for personal and school use is a common practice. There is a world's worth of information...

  • How to Block Bad Websites

    The Internet hosts an abundance of malicious websites that attempt to infect the computers of unwary visitors. Even experienced users know that...

  • How to Block a Website in a Network

    You can prevent users on your network from visiting websites that are security risks, use too much bandwidth or to protect your...

  • Squid Proxy Tricks

    Squid Proxy Tricks. Squid is a web caching proxy designed for optimizing an Internet connection by caching commonly accessed pages. It is...

  • How to Block Websites Easily and for Free

    You'll find many products for blocking websites. Some work for the general user who wants to block spammers while others are for...

  • How to Access Blocked Sites

    Websites can be blocked for any number of reasons by any number of entities. Corporate and academic networks impose blocks on their...

  • How to Use DNS to Block Websites

    A Domain Name System (DNS) is a server application that at a basic level tells the world how to access local servers....

  • How to Use Block Sites

    If you are running a Windows operating system, you can use a built-in feature of the OS to block websites from being...

  • How to Use Squid With PHP

    PHP is a dynamic server-side scripting language designed for web development and production. Many web creators and developer prefer using PHP because...

  • How to Block Access to a Website

    Internet security is an important part of modern computing. Not only must one worry about protecting the data a computer contains--one must...

Related Ads

Featured