Disable Links on YouTube Videos – Code Hack

Post image of Disable Links on YouTube Videos – Code Hack
Filed in Hack , YouTube2 comments

This explains the way to disable links on YouTube videos. This code hack can secure your traffic by disabling clickable links to the original location on flash players like YouTube. When you embed a YouTube video using their default embed code or through an external player, a link to the original YouTube video also enable along with player. If you suffer about that source link because that link can throw your traffic away, it’s totally understandable. But fortunately with an Adobe Flash Player parameter, you can easily disable that original link.

Not only with YouTube but, this hack can be used with on most embedded flash players.

Hack – Disable link to the original location on embedded YouTube videos

YouTube now provides an IFrame to embed videos. But still you can use old embed code. Only thing you need is video id. You can copy it from URL. It’s the code which locates after, v=

www.youtube.com/watch?v=EtQciXNyA0Y

To disable internal links use allownetworking=”internal” parameters.

This is how we can disable original YouTube links on embedded player:

<object width="560" height="315">
<param name="allowFullScreen" value="true">
<param name="wmode" value="transparent">
<param name="src" value="http://www.youtube.com/v/HIrMIeN5ttE">
<param name="allowfullscreen" value="true">
<param name="allownetworking" value="internal">
<embed width="560" 
height="315" 
type="application/x-shockwave-flash" 
src="http://www.youtube.com/v/HIrMIeN5ttE" 
allowfullscreen="true" 
wmode="transparent" 
allownetworking" value="internal" />
</object>

Example: (Try clicking on Youtube watermark)

 

Note: If you use your own advertisements on the flash player, this parameter may course some problems. So make it clear before update your code. And check your sponsor’s terms once again about external parameters like this.

Click the following link to find some other parameters to modify your YouTube player.

Customize YouTube Embed Code – YouTube Embedded Player Parameters

With them you can change the appearance of the player (like player color and borders), disable relevant video suggestion, embed High quality videos etc…

 Have any troubles? Shoot a comment.

Posted by admin   @   28 March 20122 comments
Tags :
GD Star Rating
loading...
Disable Links on YouTube Videos - Code Hack, 9.4 out of 10 based on 5 ratings

2 Comments

Comments
Apr 19, 2012
1:07 pm
#1 Hghgh :

“Click the following link to find some other parameters to modify your YouTube player.”
It’s not a link!

Apr 20, 2012
3:35 am
#2 admin :

Opps… My bad. I was planning an article with more details. But it’s not completed yet. As I remember I linked Youtube API. Check it now. I linked it temporary. Thanks btw. 

Leave a Comment



Previous Post
«
Next Post
»