Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I add rel nofollow to iframe tag?

Tags:

seo

iframe

I have a widget distributed in some sites via an iframe. But I don't want the google bot index the url. Will adding a nofollow to iframe tag resolve the problem?. Does Iframe tag support nofollow, and will Google understand it?

like image 287
smoreno Avatar asked Sep 26 '12 21:09

smoreno


1 Answers

Absolutely, you kind of can add rel="nofollow" to an iframe. You just must be tricky about it. Here's how...

Build a blank html file. Add your iframe to that alone. In the Meta tag include

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

Now, iframe that page onto the one your going to show.

like image 104
Ungoogle Avatar answered Sep 30 '22 02:09

Ungoogle