Disable WordPress Embeds

Posted on December 23, 2016 at 11:16 am

Some users have reported that the json URLs are sometimes indexed by Google:

http://www.site.com/wp-json/oembed/1.0/embed?url=http%3A...

To disable WordPress embeds you can use this plugin:

https://wordpress.org/plugins/disable-embeds/

You can also remove these references in HTML head:

<link rel='https://api.w.org/' href='http://example.com/wp-json/' />
<link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />
<link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=..." />

See this link to do that:

Remove WordPress JSON API Links in the Head

Other Posts

Updated Posts