Embedding a YouTube Video but Hiding the URL

By Anthony Oster

Disabling the URL and links in a YouTube video can prevent viewers from navigating away from your site.
i Agri Press/Lifesize/Getty Images

Embedding YouTube videos on your business website gives your customers a clear indication of your products, services and ideals. You can disable the URL and return link to YouTube to keep potential customers and clients on your site, while also preventing them from accessing other videos on your YouTube channel. Disabling the URL of an embedded YouTube video requires the use of YouTube's old embed codes.

Log in to YouTube and click your username. Select "My Channel" and locate the video that you would like to embed in your site.

Click the "Share" button and select the "Embed" option. Select the "Enable privacy-enhanced mode" and "Use old embed code" options, making sure that both options have a check-mark next to them. Deselect the "Show suggested videos when the video finishes" option to prevent other videos in your content channel from being displayed.

Select and copy the embed code, then paste it into a word processing program, such as Notepad or Microsoft Word.

Enter the code


immediately after the string of code that reads


Copy the new code from your word processing program into your HTML editor in the desired position on your website and publish the changes to your site.


You can test your new embed code using an HTML code tester.