Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard Proxyfilter SafeSearch

    pfSense Packages
    2
    7
    4.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      onkeldave83
      last edited by

      Good morning,

      i have some trouble with my proxyfilter squidguard.

      the strict google safe filter, worked after my opinion, not correctly.

      i cant search porn and fuck - this is correct
      but i can search sex….and some more

      i remember, in pfsense 1.2.3 squidguard, i cant search sex!

      could it be, that squid has cache this site/search result....?

      AND...

      
      To protect your children from adult content, you can use the protected mode of search engines. Now it is supported by Google, Yandex, Yahoo, MSN, Live Search. Make sure that the search engines can, and others, it is recommended to prohibit.
      Note: ! This option overrides 'Rewrite' setting. ! 
      

      only google worked for me by some expressions…yahoo and msn not :(

      have someone experienced similar?

      thanks

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Check Googe Settings strong and test as is you queries. Probably this is a google problem.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • O
          onkeldave83
          last edited by

          jo right!

          i have open a toppic at google forum….

          waiting....

          1 Reply Last reply Reply Quote 0
          • O
            onkeldave83
            last edited by

            until now google support not answer…...

            what is with yahoo?
            yahoo strict filter does not work....
            this is a pfsense problem...strict are not activated, when you configured this in proxyfilter ;)

            keep you up to date....

            1 Reply Last reply Reply Quote 0
            • D
              dvserg
              last edited by

              @onkeldave83:

              until now google support not answer…...

              what is with yahoo?
              yahoo strict filter does not work....
              this is a pfsense problem...strict are not activated, when you configured this in proxyfilter ;)

              keep you up to date....

              When these rules were added to the package - everything worked fine. Possibly at Yahoo have changed the conditions - it takes time for inspection.

              SquidGuardDoc EN  RU Tutorial
              Localization ru_PFSense

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by

                You can change /usr/local/pkg/squidguard.inc

                
                function squidguard_adt_safesrch_add($rewrite_item)
                {
                    if (!is_array($rewrite_item)) $rewrite_item = array();
                
                    # Google
                    $rewrite_item[] = array(F_TARGETURL => '(google\..*/search?.*q=.*)', F_REPLACETO => '\1\&safe=active', F_MODE => 'i');
                    $rewrite_item[] = array(F_TARGETURL => '(google\..*/images.*q=.*)',  F_REPLACETO => '\1\&safe=active', F_MODE => 'i');
                    $rewrite_item[] = array(F_TARGETURL => '(google\..*/groups.*q=.*)',  F_REPLACETO => '\1\&safe=active', F_MODE => 'i');
                    $rewrite_item[] = array(F_TARGETURL => '(google\..*/news.*q=.*)',    F_REPLACETO => '\1\&safe=active', F_MODE => 'i');
                
                    # Yandex
                    $rewrite_item[] = array(F_TARGETURL => '(yandex\..*/yandsearch?.*text=.*)', F_REPLACETO => '\1\&fyandex=1', F_MODE => 'i');
                
                    # Yahoo
                # here    $rewrite_item[] = array(F_TARGETURL => '(search\.yahoo\..*/search.*p=.*)', F_REPLACETO => '\1\&vm=r', F_MODE => 'i');
                    $rewrite_item[] = array(F_TARGETURL => '(search\.yahoo\..*/search.*p=.*)', F_REPLACETO => '\1\&v=1&vm=r', F_MODE => 'i');
                
                    # MSN Live search
                    $rewrite_item[] = array(F_TARGETURL => '(search\.live\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i');
                    $rewrite_item[] = array(F_TARGETURL => '(search\.msn\..*/.*q=.*)', F_REPLACETO => '\1\&adlt=strict', F_MODE => 'i');
                
                    return $rewrite_item;
                }
                
                

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • O
                  onkeldave83
                  last edited by

                  thank you!!!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.