How to Disable Youtube Related Videos on a Page

By | May 12, 2009

There are some cases when you need to avoid displaying related videos to the youtube object shown on the page. For example, today I was called by an aesthetic clinic manager who was very unsatisfied with related videos that were shown on their site. They were related to plastic surgery, and were quite offensive. So I had to disable Youtube related videos in the embedded player. The solution was very simple: you just need to add a short parameter to your Youtube URL. All you need to add is &rel=0 to the Youtube URL. It will stop displaying related videos, the thing that often takes a lot of time. :)

So the initial state was:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/4HwMzUAbfWg&hl=ru&fs=1″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/4HwMzUAbfWg&hl=ru&fs=1″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

And after my modification it became:

<object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/4HwMzUAbfWg&hl=ru&fs=1&rel=0“></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/4HwMzUAbfWg&hl=ru&fs=1&rel=0” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>

This simple parameter will save you from unwanted videos displayed at your pages.

One thought on “How to Disable Youtube Related Videos on a Page

  1. Anya

    i am so addicted to Youtube. I watch mostly music videos and funny videos on Youtube sometimes i also upload my own funny videos in youtube. `

Comments are closed.