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

    Squidguard url-rewrite for Google safe search?

    Scheduled Pinned Locked Moved pfSense Packages
    14 Posts 6 Posters 9.9k Views
    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.
    • S
      SAugsburger
      last edited by

      I download and configured Squid and Squidguard in order to use Pfsense as a url-rewrite proxy, but haven't had any luck in getting url-rewrite to force Google Safe Search.  I tried the built in option that was supposed to cover Google and several other search engines and got no dice.  Does anybody have a sample config for Squidguard that does work properly?

      1 Reply Last reply Reply Quote 0
      • N
        networkinggeek
        last edited by

        Their is option in SquidGuard to enforce safesearch for Google, Yahoo and Bing. Just check the option and it'll be enforced.

        "Mastery isn't a natural gift. Its a daily devotion"

        1 Reply Last reply Reply Quote 0
        • S
          SAugsburger
          last edited by

          No, it is not working.  I do have the "Use SafeSearch engine" check box checked and I have restarted squid multiple times.  No evidence that any of the url-rewrites are working.  Is there something else that I need to do?  Either there is something else beyond restarting squid that needs to be done or the built in option doesn't appear to work.  I have tried completely restarting Pfsense completely and same result.  I've tried various custom rewrite conf that I have found others suggest and they don't work either.

          For reference since I forgot to mention in in the initial post.  I have Squid 3.3.10 and SquidGuard 1.4_4 v.1.9.5.  If somebody has a known functional setup please I would be interested in how you configured your setup (versions used, any custom config, etc.).

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

            Safesearch may not work due to changes made ​​by the developers of search engines. This part of the code has not been updated in a package for a long time, and therefore may not be relevant. Why is it so is another question ..

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              I was helping someone just the other day with this very issue.  SafeSearch via SquidGuard works fine.  With it enabled, I couldn't get to any spicy Google images, and any attempts to turn off the filter just dropped you on the Google main page.

              1 Reply Last reply Reply Quote 0
              • S
                SAugsburger
                last edited by

                @KOM:

                I was helping someone just the other day with this very issue.  SafeSearch via SquidGuard works fine.  With it enabled, I couldn't get to any spicy Google images, and any attempts to turn off the filter just dropped you on the Google main page.

                Did you do anything beyond clicking the checkbox?  In addition, what version of squid/squidGuard were you running?

                1 Reply Last reply Reply Quote 0
                • N
                  networkinggeek
                  last edited by

                  @SAugsburger:

                  Did you do anything beyond clicking the checkbox?  In addition, what version of squid/squidGuard were you running?

                  Did you check both the "Enable Safe Search" option and also the "safesearch" option in rewrite dropdown in the common acl as well?

                  "Mastery isn't a natural gift. Its a daily devotion"

                  1 Reply Last reply Reply Quote 0
                  • S
                    SAugsburger
                    last edited by

                    @networkinggeek:

                    @SAugsburger:

                    Did you do anything beyond clicking the checkbox?  In addition, what version of squid/squidGuard were you running?

                    Did you check both the "Enable Safe Search" option and also the "safesearch" option in rewrite dropdown in the common acl as well?

                    I have both the enable safe search option and the rewrite dropdown selected, I saved the changes and I already restarted squid.  SquidGuard shows as running as well.  Still no dice.

                    1 Reply Last reply Reply Quote 0
                    • N
                      networkinggeek
                      last edited by

                      @SAugsburger:

                      I have both the enable safe search option and the rewrite dropdown selected, I saved the changes and I already restarted squid.  SquidGuard shows as running as well.  Still no dice.

                      I just tried it with squid3 and squidguard-squid3 package. Safesearch is working fine with bing and yahoo. Google is showing that safesearch is enabled but it pops up the results even for the loaded terms. May be it is looks for certain patterns and filters the results depending on the regional domains (Well this I what i think and I may be wrong).

                      "Mastery isn't a natural gift. Its a daily devotion"

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        In addition, what version of squid/squidGuard were you running?

                        I don't remember if it was 2 or 3, but it was NOT Squid3-dev.

                        1 Reply Last reply Reply Quote 0
                        • S
                          SAugsburger
                          last edited by

                          @networkinggeek:

                          @SAugsburger:

                          I have both the enable safe search option and the rewrite dropdown selected, I saved the changes and I already restarted squid.  SquidGuard shows as running as well.  Still no dice.

                          I just tried it with squid3 and squidguard-squid3 package. Safesearch is working fine with bing and yahoo. Google is showing that safesearch is enabled but it pops up the results even for the loaded terms. May be it is looks for certain patterns and filters the results depending on the regional domains (Well this I what i think and I may be wrong).

                          Depending upon how the regular expression is written it may not apply to all versions of Google and Google may use slightly different syntax in different international versions.  I recognize that, but I can't get it to work with any version afaik.  I recognize one can't be perfect, but even basic functionality doesn't appear to be working here at least for me anyways.

                          1 Reply Last reply Reply Quote 0
                          • S
                            SAugsburger
                            last edited by

                            Anybody have any ideas?

                            1 Reply Last reply Reply Quote 0
                            • A
                              abasel
                              last edited by

                              I can't get it to work either

                              1 Reply Last reply Reply Quote 0
                              • P
                                putt1ck
                                last edited by

                                Possibly the rewrite works as expected but then Google redirects the request to SSL, whereupon (without further tech) the rewrite isn't possible. You can workaround the SSL redirect by creating CNAME records for all Google domains you allow, pointing at nosslsearch.google.com.

                                Rumours are that there is known way to circumvent that method, so can also try accepting the SSL but using the CNAME record method to force safe search forcesafesearch.google.com.

                                Or just ban Google for being idiots and forcing SSL and use Bing instead.

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