SquidGuard: Block pages with adult content with Arch, Manjaro ..

lips

Something that many parents are concerned about is the number of pornographic sites on the Internet and also the possibility that their children or in some cases they themselves end up on those websites. It is because of the above that today I write a simple tutorial that is oriented to Arch linux based distributions (in fact, I am using Antergos), but you can clearly do it in anyone.

Installing SquidGuard

1.Download the SquidGuard installer http://www.squidguard.org/Downloads/squidGuard-1.4.tar.gz

2. After having downloaded the file, we click on "Extract here", or through the terminal:

$ tar xzvf squidGuard-1.4.tar.gz

SquidGuard

3.Now we will use the terminal and we will locate ourselves in the folder that we have just extracted, in my case it is enough to write the following lines from the terminal:

$ cd Downloads / squidGuard-1.4

Once located in the folder we will proceed to write the following commands:

./configure make

It is necessary to be root user for the next step, therefore we will write:

su -

4. After we are as root user we will have to enter the SquidGuard-1.4 folder again, for this it is necessary that you remember that you are in the main directory, in my case I had to write the following:

[root @ jorge /] # cd home [root @ jorge home] # cd jorge [root @ jorge jorge] # cd Downloads [root @ jorge Downloads] # cd squidGuard-1.4 [root @ jorge squidGuard-1.4] # make install
Installing squidGuard Done.

When we are located in the squidGuard-1-4 folder we only write < > and we will have the program installed.

Banned lists (< >)

These lists are very difficult to do because there are many websites, therefore we will go to the following projects for this:

MEDS blacklists

Shalla's blacklists

Screenshot from 2014-07-04 11:39:01

The image illustrates this last step, basically what you have to do is extract the lists that we already downloaded (graphic mode or by the terminal as shown in step 2 of the first part) and move the entire directory to the location of the program.

[root @ jorge squidGuard-1.4] # cd .. [root @ jorge Downloads] # mv BL / usr / local / squidGuard [root @ jorge Downloads] # mv blacklists / usr / local / squidGuard

In the second line of code the directory of Shalla's list is being moved and in the third line that of MEDS.

Note: The program is located in / usr / local / squidGuard (by default).

Congratulations! Now when you enter an adult website you will see the following:

Screenshot from 2014-07-04 11:52:51


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Gonzalo said

    Excellent! Will it also serve to implement it in a network?

    1.    @Jlcmux said

      I suppose you could try making Archlinux the Proxy or Gateway of your network before the router.

  2.   Jorge said

    Hi, could you use something like that but with Privoxy? Because now I am using it to block ads as suggested in a previous post.

    It is appreciated 😀

  3.   Cristianhcd said

    works for https?

  4.   yolin said

    There is a small detail in the part of moving the folder moves to the SquidGuard / db directory (to the database), that's how it worked for me. Thank you

  5.   senjik said

    themes?

  6.   nexus6 said

    Without having to install or compile anything, just add the IPs of opendns in the modem / router / servidordns to filter all that crap. I have it configured like that and it works very well.

    1.    nexus6 said

      The ip's are 208.67.222.123 and 208.67.220.123 in case someone is interested in trying and the page https://store.opendns.com/familyshield/?__utma=247635969.863866226.1404604654.1404604654.1404604654.1&__utmb=247635969.12.9.1404604805836&__utmc=247635969&__utmx=-&__utmz=247635969.1404604654.1.1.utmcsr=google| utmccn = (organic) | utmcmd = organic | utmctr = (not% 20provided) & __ utmv = - & __ utmk = 113228551

      1.    lastnewbie said

        Thanks for the information, I did not know this method. I used it with my tp-link TL-WR841N router

    2.    eliotime3000 said

      But sometimes you run into the misfortune that some ISPs are so daughters of their mother that they do not let you enter the router and / or lack these options.

      You have to take that detail into account.

  7.   jamin samuel said

    This post will NOT like the friend Yoyo

    xD ahahaha

  8.   Jesus Ballesteros said

    Very good post, although it should also be clarified that squidguard is in the AUR repositories 😀

    ~$yaourt -Ss squidguard
    aur / squidguard 1.4-13 (7)
    An ultrafast and free filter, redirector and access controller for Squid
    aur / squidguard-1.4 1.4-1 (3)
    An ultrafast and free filter, redirector and access controller for Squid
    aur / squidguard-beta 1.5-2 (2)
    An ultrafast and free filter, redirector and access controller for Squid

    All the best

  9.   Isabel said

    very good. i wear it a good time, like dansguardian, sasafesquid. although lately I have been deciding on the diladele (due to the ssl certificate, it is more practical than configuring it with squid 3), thanks for the article

  10.   Guest said

    It's easier to talk to your kids than to do these crap, but most parents prefer the easy to the best.

    1.    ever said

      Comment that nothing contributes.
      Each parent will reveal more information to their children as they see fit and according to the child's level of understanding.
      Nowadays, 4 or 5 year olds move around the Internet like nothing else and are the most vulnerable to exposing themselves to seeing things they shouldn't. Parents with good judgment will protect them from that until they can tolerate it, understand it, and then decide for themselves whether to consume that type of content or not.
      regards

    2.    cuervo291286 said

      Surely with you if your parents spoke and even so you continue to see these sites ...

      1.    cuervo291286 said

        my comment is for «Guest»

  11.   algave said

    Excellent post .... (so educational is the p0rn). xD

  12.   mrcelhw said

    Incredible tutorial, thanks for sharing it, very useful.

  13.   naturo said

    My children are going to watch porn whether they want it or not

  14.   naturo said

    Not for me LOL

  15.   Rainier Herrera said

    Hi guys, good morning / afternoon / evening.
    Would you indicate a script with which to update the Meds and Salla lists?
    Or redirect me to a post where I can learn how to create one.
    Thank you.