Embedded YouTube Video Not Playing: Fix Error 153 and Video Unavailable

Short answer
What is YouTube error 153?
YouTube error 153 is a player error code that appears when the request from the YouTube player on your website does not include the HTTP Referer header or an equivalent API client identification. As a result, YouTube can't see who sent the request and refuses to play. The video is fine; the missing piece is your site's identification.
The promo video on your website stopped working one day. Instead of the player, visitors now see "Error 153," "Video unavailable" or a message along the lines of "Video player configuration error." Customers can't watch it, and the page looks broken. In most cases, YouTube error 153 has nothing to do with the video itself. Instead, it means your site is not telling YouTube who it is. In this guide, Talha Aslan and our team separate the error codes one by one, show which fixes you can make yourself and explain where you actually need a developer.
We are not guessing here. Google's official YouTube IFrame Player API reference lists code 153 with exactly that meaning: the request does not include the HTTP Referer header or equivalent API client identification. The YouTube Help page adds that viewers then see a blocked playback error, although the "Watch on YouTube" link still works.
So what is a Referer? It is a piece of information the browser adds when one page sends a request to another address, saying "this request comes from this site." In short, error 153 means YouTube asked "who is calling me?" and got no answer. That is also why the fix lives in your site settings, not in the video.
Is "Video unavailable" the same as error 153?
No, not always. You may see a similar gray box on screen, but different causes can sit behind it. The official IFrame API reference defines several separate error codes for the embedded player, and each one points to a different problem.
YouTube error 153 is an identity problem, so the fix sits on your website. Codes 101 and 150, on the other hand, mean the owner does not allow the video to play in embedded players. Code 100 means YouTube can't find the video, for example because the owner removed it or set it to private. Code 2 signals an invalid parameter value, for instance a video ID that is not 11 characters long.
This distinction matters, because you can fix some codes yourself while only the video owner can fix others. If the video does not play on YouTube itself either, the issue has nothing to do with your site. We cover that viewer side in our guide to the YouTube "this content isn't available" error. This article focuses only on videos you embed inside your own website.
Why does the Referer matter so much to YouTube?
YouTube calls everyone who uses its player outside youtube.com an "API client" and asks them to identify themselves. The official YouTube API Services required minimum functionality page states the rule clearly: API clients that use the embedded player must provide identification through the HTTP Referer request header.
The same page says YouTube recommends the strict-origin-when-cross-origin referrer policy for this purpose. With that value, requests to other sites carry only your domain instead of the full page address. In other words, the exact page your visitor is on stays private, but YouTube can still see that the request comes from your site. According to the official page, many browsers already use this value by default.
Why is the rule so strict? The official page notes that failure to comply might result in reduced functionality in the embedded player. YouTube error 153 is the most visible form of that. Therefore, if your site strips the Referer, knowingly or not, the player stops working.
Why might your site be failing to send the Referer?
Most business owners don't remember changing anything like this. That makes sense, because the setting usually arrives as a side effect of another task. These are the sources we see most often in practice:
- A security plugin: WordPress security plugins may set the Referrer-Policy value to
no-referreras part of their "security headers" feature. - Server or CDN settings: A security layer in front of your site may add a strict policy to every page.
- A tag in the page head: A meta tag that someone added to the theme header can do the same thing.
- The iframe attribute: The video code itself may include
referrerpolicy="no-referrer". - Apps and WebViews: If you show the video inside a mobile app, the app may not send a Referer at all.
Still, all of these sources share good intentions: they want to protect visitor privacy. For YouTube, however, they go too far. The fix is not to switch off security but to find the right balance.
One more tip. If the error started on many pages at once, the cause is most likely a site-wide setting such as a plugin, the server or a CDN. If only one video fails, check the attribute in that video's code first. Also note the day the problem began, because remembering what changed that day often points straight to the cause.
How do you fix YouTube error 153 step by step?
If you follow the order below, you will usually find the cause quickly. After each step, clear your cache and reload the page.
- Check that the video plays normally on YouTube itself. If it fails there too, your site is not the problem.
- Open the browser's developer tools (F12 on most computers) and select the page's own request in the Network tab.
- Look for the Referrer-Policy line among the response headers. If the value is
no-referrerorsame-origin, you have most likely found the cause. - Find out which layer adds the header: a security plugin, the server configuration or a CDN.
- Change the value to
strict-origin-when-cross-origin. - If you can't change the site-wide setting, add
referrerpolicy="strict-origin-when-cross-origin"to the video iframe. - Clear the cache and test the video again in a private window.
In practice, step six only affects that one video and leaves the privacy setting for the rest of the site untouched. That makes it a safe interim fix when you can't manage the global setting. If you can't edit the code yourself, simply send that line to whoever built your site.
What do embedded video error codes mean, and who fixes them?
The diagnostic table below matches the error codes from the official IFrame API reference and the restrictions from YouTube Help with the symptoms you see. In the last column, we state honestly who can make the fix.
| Symptom | Code or condition | Meaning | Who fixes it? |
|---|---|---|---|
| Player error, "Watch on YouTube" still works | 153 | No Referer or client identification | You (plugin setting) or a developer (server setting) |
| Video plays only on YouTube | 101 and 150 | Owner does not allow embedded playback | Video owner |
| Video not found | 100 | Video removed or private | Video owner; you pick another video |
| Player never starts | 2 | Invalid value, such as a wrong video ID | You (paste the correct code) |
| Player loads but won't play | 5 | An HTML5 player related error | Developer |
| Viewer gets sent to YouTube | Age restriction | Age restricted videos don't play on most sites | Video owner |
| Fails in some countries | Copyright owner block | Blocks can be country specific | Rights holder |
| Empty area until consent | Cookie consent tool | The tool holds the video until consent | You or a developer |
The "developer" rows require server or code changes. If your site keeps needing patches like these, it is usually more durable to handle videos, security headers and the consent flow together as part of professional web design services rather than fixing them one at a time.
What can you do if the owner turned off embedding?
If you see code 101 or 150, then the problem is not on your side. According to the official reference, both codes mean the same thing: the owner of the requested video does not allow it to play in embedded players. The reference even describes 150 as "a 101 error in disguise."
If the video is on your own channel, then the fix is simple. YouTube Help explains that the embedding option sits in YouTube Studio, in the video's details, under "show more." Make sure the "Allow embedding" box is checked and save. Menu labels can change over time, so check the current path on the Help page.
If the video belongs to another channel, you have two options. You can ask the channel owner to allow embedding, or you can link to the video's YouTube page instead of embedding it. Downloading someone else's video and uploading it to your own site is risky from a copyright point of view, so we don't recommend it. For your own promo videos, the most reliable approach is to keep them on your business's own channel.
How can you tell if a video is private, removed or has a wrong address?
According to the official reference, code 100 means YouTube can't find the requested video. The reference names two typical reasons: the owner removed the video for any reason, or the owner marked it as private. Search for the video on YouTube; if it doesn't open or shows a "private video" notice, you have found the cause.
Code 2, by contrast, usually comes from a badly copied address. The official reference says it appears when a video ID does not have 11 characters or contains invalid characters such as exclamation points or asterisks. Another mistake we see often is pasting the watch address straight into the iframe.
- The address you watch in the browser:
https://www.youtube.com/watch?v=VIDEO_ID - The address the iframe needs:
https://www.youtube.com/embed/VIDEO_ID
The official player parameters documentation gives the embed format exactly as in the second line. The safest route, however, is not to type code by hand. Instead, click Share under the video, choose "Embed" and copy the ready-made HTML. The YouTube Help page describes these steps in the same order.
How do age restrictions and copyright blocks affect embedded videos?
Some videos never play on your site because YouTube does not show them on other websites. According to YouTube Help, age restricted videos can't be watched on most third party websites and send viewers to YouTube when played. If you wonder why your own video got an age restriction, our guide on YouTube age restriction explains the reasons and the appeal route.
On the copyright side, the YouTube Help page on Content ID claims adds an important detail. A rights holder can block a video, monetize it or simply track it. Any of these actions can be geography specific, so a video might play in some countries and not in others. The same page also notes that copyright owners may restrict the apps or websites where their content appears, and that this does not change the video's availability on YouTube.
Consequently, if a video plays on YouTube but not on your site and you see no 153 code, a copyright based site restriction is also a possibility. If your own channel has a copyright issue, see our guide on how to remove a YouTube copyright strike.
What should you do if a cookie consent tool blocks the video?
For example, on some sites the video box stays empty, but no YouTube error code appears. In that case, the most likely cause is the cookie consent tool. Many consent tools don't load the YouTube iframe until the visitor allows external content. That is a deliberate setting of the tool, not a bug.
Instead, the real problem is that visitors don't understand why they see an empty box. So make sure the consent tool shows a short explanation and a "show video" button in place of the player. That way, visitors know what they agree to and can open the video with one click. We explain how to set this up in our guide to cookie banner design that is compliant and user friendly.
The consent tool can also affect page speed. If the banner appears late and pushes content down, or if the video area suddenly expands and shifts the page, the visitor experience suffers. We discuss this separately in cookie consent banner hurting Core Web Vitals.
What is privacy-enhanced mode (youtube-nocookie), and what does it do for GDPR?
YouTube's official name for its privacy focused embed option is "privacy-enhanced mode." According to YouTube Help, you turn it on by changing the domain in the embed address from youtube.com to youtube-nocookie.com.
The Help page also explains what the mode does. It prevents views of embedded content from influencing the viewer's browsing experience on YouTube. In addition, ads in this mode are non-personalized. However, the page also names the limits. Once viewers leave the embed for another site or app, that destination may track them under its own policies. Moreover, the mode only applies to embedded players on websites, not to apps.
So don't read privacy-enhanced mode as "no consent needed." The official documentation does not say that. Which consent you need under GDPR or other privacy laws depends on your site's entire data flow. We cover the general framework in our guide on how to build a GDPR compliant website. This section is not legal advice; consult a lawyer for a definitive assessment.
Why won't the video play inside a mobile app or WebView?
If you show the video inside a mobile app rather than on a website, YouTube error 153 can show up more often. Specifically, a WebView is a small browser window inside an app. That window does not always send the Referer that a normal browser adds automatically.
The official required minimum functionality page gives guidance for this case. When available, it recommends using one of the OS provided WebView types. If the player sits in a local HTML file bundled with the app, you need to set the base URL when you load the file. If you load the player directly from a YouTube embed URL, you add the Referer as an HTTP header.
The same page also sets a size rule: embedded players must have a viewport of at least 200 by 200 pixels. Shrinking the video box too much in a mobile layout can therefore cause trouble as well. Because these settings live in the app code, this part is mostly a developer task.
If you don't have an app and only show the video on your website, you can skip this section. But if you publish your site inside an app shell, for example in a browser and in an app from the store, test both environments separately. A video that works in the browser can behave differently inside the app.
Can error 153 come from the visitor's own browser?
Yes, sometimes the problem sits on the visitor's computer rather than on your site. If you can watch the video without trouble but a customer reports error 153, consider this possibility. Some privacy extensions and browser settings remove the Referer on every site to protect the user. In that case, YouTube sees the same missing identity and shows the same error.
The official documentation does not describe this visitor side scenario separately. For that reason, we can't give a definitive list, but the diagnostic method is simple. Ask the visitor to open the page in a private window without extensions or in another browser. If the video plays there, a setting in their browser is the cause.
The best thing you can do here is to keep the visitor even if the player fails. As YouTube Help notes, the "Watch on YouTube" link keeps working on the error 153 screen. We also recommend a short text summary under the video box or a link to the video's YouTube address. That way, your content reaches the visitor no matter what.
On the other hand, if complaints come from several visitors on different devices, the problem most likely sits on your site. Then go back to the steps above and check the response headers again.
Why does the video play but never autoplay?
This is not an error, but business owners ask about it a lot. You want the video to start on its own when the page opens, and it doesn't. The official IFrame API reference explains why: browsers have policies that can block autoplay in desktop, mobile and other environments under certain conditions.
The conditions it lists include unmuted playback without user interaction and a missing Permissions Policy that allows autoplay in a cross origin iframe. In other words, the browser protects visitors from videos that start with sound unannounced.
Our advice, therefore, is not to force autoplay at all. A video that starts on its own with sound annoys most visitors and creates accessibility problems. Also, the player parameters documentation notes that with autoplay on, playback data collection and sharing happen as soon as the page loads. If you are thinking about a background video, our article on whether to use a hero video background weighs the pros and cons.
What should you watch for when adding videos on WordPress?
When you paste a YouTube link into a paragraph, WordPress turns it into a player automatically. That convenience is nice, but it makes the cause harder to see when an error appears. The reason is that several layers on the same site may call the video: the editor's own video block, the page builder's video widget and a separate video plugin.
When something breaks, we recommend these checks in order:
- Identify which block or widget inserted the video.
- Check the widget settings for options such as privacy mode, delayed loading or a custom cover image.
- Look at the Referrer-Policy value in the security plugin's header settings.
- See whether the cache plugin has a setting that delays the video iframe.
- After each change, clear the cache and test the video in a private window.
Each of these layers can be harmless on its own; the problem usually comes from a combination of two. For example, the page builder may switch the video to privacy mode in its own code while the security plugin strips the Referer. Therefore, make changes one at a time and check the result after each step.
Does a preview image instead of the player help?
Yes, it helps with speed, privacy and error handling. With this approach, the YouTube player does not load right away when the page opens. Instead, you show the video's cover image with a play button. When the visitor clicks the button, the real player starts.
This setup has three benefits. First, the page loads lighter, because the player code does not download unless someone actually wants to watch. Second, it works better with the consent tool: the preview area carries a short explanation, and one click both gives consent and opens the video. Third, even if the player throws an error, the visitor never stares at an empty box.
That said, setting this up well takes some care. The cover image needs the right ratio, the play button must work with a keyboard, and the video should start with a single click afterward. Otherwise, visitors have to click twice. For that reason, we usually plan this setup during the design phase, together with the video component.
Example scenario: why did every video show error 153 after a security plugin?
Let's walk through an example scenario. A training school's website has a YouTube promo video on every course page. During a security scan, the site manager sees a "missing security headers" warning and installs a security plugin. The next day, parents start writing that "the videos won't play."
First, the manager tests the videos on YouTube, and they all play fine. Then they look at the page's response headers in the developer tools and see that the Referrer-Policy value is no-referrer. The plugin chose the strictest value when it added the security headers. The fix is to change that value to strict-origin-when-cross-origin in the plugin settings. All other security headers stay in place.
The lesson, therefore, is this: security headers are useful, but switching them all on without knowing what each one does creates side effects. We explain the general logic of these headers in another site is showing my website in an iframe. For the path to follow after an update breaks things, read what to do when your website broke after a plugin update.
What are the most common mistakes?
Most embedded video problems come from a few recurring habits. These are the ones we see most in practice:
- Installing a security plugin and never checking its header settings.
- Pasting the watch address straight into the iframe.
- Using another channel's video without knowing whether its owner allows embedding.
- Uploading the company promo video to an employee's personal channel.
- Showing visitors no explanation when the consent tool holds back the video.
- Shrinking the video box too much on mobile.
- Testing only in your own browser, signed in and with a warm cache.
Above all, the last point matters. The video may work on your computer simply because your browser shows an old version. If you made a change but can't see the result, clear the cache layers one by one as described in website changes not showing. Then always repeat the test in a private window and on at least one mobile device.
How should you build your site so YouTube error 153 never comes back?
Fixing it once is not enough; the real goal is to make sure YouTube error 153 and similar problems don't return. For that, we recommend building the site on these principles from the start:
- Choose security headers deliberately: Use
strict-origin-when-cross-originfor Referrer-Policy and document what every header does. - Keep videos on your own channel: Embedding settings, age status and copyright status stay under your control.
- Design the consent flow together with the video: Show an explanation and a preview until consent arrives.
- Load the video only when needed: Call the player when the visitor scrolls near it or clicks it.
- Use a pre launch checklist: After every update, test at least one video page in a private window.
For the fourth point, lazy loading works well. Whether you should stream videos from YouTube or from your own infrastructure is a separate decision that we compare in YouTube embed vs self hosted video.
How can our web design team help at this point?
Changing a security plugin setting or adding one attribute to the video code is something most business owners can do themselves; we showed that honestly above. However, when the problem lives in the server layer, in tangled plugins or in the whole consent flow, fixing the foundation lasts longer than patch after patch.
On business websites, our team handles information architecture, speed and Core Web Vitals targets, SEO foundations, an admin panel and measurement setup in one plan. We prefer lean custom code over bloated themes and plugin stacks, which also reduces surprise header and conflict issues. Nothing goes into code before you approve the design, and you see every page on a staging site before launch. Finally, we document the code we hand over, so another developer can take it over later.
If you want a site where videos, forms and speed are right from the start, take a look at our corporate website design process and send us your requirements in writing. There is no rush. Try the steps in this guide first, and if the problem keeps coming back, then let's talk.



