Can I add rel nofollow to the iframe tag?

I have a widget distributed on some sites through an iframe. But I do not want the google bot pointer to indicate a URL. Will the nofollow tag nofollow an iframe problem? ". Does the iframe tag support nofollow and will Google understand it?

+4
source share
5 answers

Absolutely, you can add rel="nofollow" to the iframe. You just have to be deceiving. Here's how ...

Create an empty html file. Add your iframe only to this. There is a meta tag

 <meta name="robots" content="noindex,nofollow"> 

Now, iframe this page to the one you are about to display.

+4
source

The rel attribute is not allowed for an iframe element.

See allowed attributes for iframe : HTML5 , HTML 4.01

0
source

"rel" is not a recognized attribute for the iframe tag according to the W3C specifications. You can use some javascript and document.write to place the iframe code on the page

0
source

can you check iframe crawled by google? but from my understanding that nofollow is not allowed on an iframe

0
source

According to Google, all you need is

 <meta name="robots" content="none" /> 

"none is the equivalent of noindex, nofollow"

0
source

Source: https://habr.com/ru/post/1436479/


All Articles