Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to enable Safety Mode in YouTube via a URL parameter? If so, how is this accomplished?

I am interested in doing this for an iOS app, as well as for a router rule.

share|improve this question
up vote 2 down vote accepted

YouTube Safety Mode is only managed through cookies rather than URL parameters. This is likely a decision made to stop people inadvertently having Safety Mode enabled by clicking on a random YouTube link.

To force Safety Mode, proxies can directly manipulate the cookie headers of outgoing requests, for example on this Bluecoat article you can see the script appending &f2=8000000 to the PREF cookie. If your router setup is sufficiently advanced this may be possible. The YouTube help article notes "Safety Mode for YouTube Mobile is not available at this time", so success on iOS depends on your implementation.

share|improve this answer
Not ideal, but with a Linux based router should be doable. Cookies are easily manipulated in iOS as well so this should work. – jjxtra Mar 25 '13 at 15:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.