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

    Enable youtube for schools in Squid

    Scheduled Pinned Locked Moved pfSense Packages
    2 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.
    • E
      ericp
      last edited by

      Hi, I want to enable youtube for schools in our school and some of the requirements to enable it is to choose one of the following options:

      A)  Add new HTTP header rule

      Modify your hardware filter or proxy server settings so that all outgoing traffic to youtube.com contains the following custom HTTP header. The ID to use in the HTTP header configuration, written below, is an example of a unique ID for your school’s network only. If your school is blocked at the district level, this HTTP header is then unique to the district network.

      Example:
      X-YouTube-Edu-Filter:ABCD1234567890abcdef
      Field Name: X-YouTube-Edu-Filter
      Description: When YouTube sees this header and an accompanying valid school ID in the incoming traffic, YouTube will serve a limited EDU-only site to all computers behind the school hardware filter.
      Field Value Format: alphanumeric [a-z][A-Z][0-9]
      Field Value Length: up to 44 characters

      B)  Create URL parameter rewrite rule

      If your hardware filter does not support HTTP header modification, please rewrite all outgoing URLs to youtube.com by appending the parameter “edufilter” at the end. Exclude the &edufilter parameter from these file types: .css, .gif, .png, .js, .xml

      Example:
      http://youtube.com/?edufilter=ABCD1234567890abcdef
      http://youtube.com/watch?v=gM95HHI4gLk&edufilter=ABCD1234567890afbcdef

      My question is how can I configure my Squid proxy package to enable youtube for school using either of these options?

      Thank you so much for your help.

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

        In squid GUI you can add any additional "custom options" you want.
        You can create ACLs, rules and more. As long you use the correct squid syntax you can add this the "custom options" box which adds these options to the squid.conf.

        this parameter could perhaps help you:
        "header_replace"

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