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

    Squidguard rewrite/redirect Youtube for schools

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 3.4k 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.
    • N
      niebla
      last edited by

      Pfsense 2.0.1 latest build. Everything working great with Squid, squidguard,and Muli-wan.

      Trying to rewrite youtbe.com -> http://youtube.com/?edufilter=zyshXjlHxWvXP-I9x3Wqjg

      Should be easy? Not sure I understand rewrite vs. redirect as the best solution.

      Added target category youtube
      block youtube in ACL
      Have rewrite defined
      click on apply and also restarted squid and squidguard services

      I will keep trying
      At one point using redirect only was getting it to redirect but getting a redirect loop in the client browser.

      Have not found any step by step how to do a simple redirect.

      Any advice is appreciated.

      International school in Chiang Mai Thailand

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

        Hi,

        I would give you some suggestions which could work:
        On the web there are some blacklists which contain youtube. www.shallalist.de filters adult content on youtube with this URL:
        youtube.com/verify_age
        So if you block this page noone should be able to click on "I am older than 18". This should filter adult content on youtube.

        In my understanding the intention of rewrite is:
        Someone is going to browse to www.google.com then the request will be rewritten to something else - lets say www.bbc.com
        Just like changing the DNS.

        Not sure but redirect seems to have more the intention to redirect someone to a "block" page.

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

          Thanks. I will try rewrite and post when I figure it out.

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