Welcome to WebmasterWorld Guest from 50.17.117.221

Forum Moderators: phranque

Message Too Old, No Replies

Best way to 'nofollow' iframe banners ?

     
8:37 pm on Mar 5, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:July 10, 2005
posts:495
votes: 0


I'm getting conflicting info on how to 'nofollow' iframe banners...so our PR doesn't bleed onto them.

I'm reading here

[productforums.google.com...]

that adding <iframe rel="nofollow" has no effect on outbound links ?

Basically I want to nofollow all my affiliate links....as most of them use 'iframes' these days.
11:56 pm on Mar 5, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


you could use robots.txt to exclude the iframed document from crawling.
10:51 pm on Mar 7, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:July 10, 2005
posts:495
votes: 0


#1 technically speaking, should an <iframe rel="nofollow" do the trick or no ?

#2 any assistance using robots.txt to exclude this particular iframe banner is appreciated. Just to give me an idea , so I could do the same with the others. I never knew you could block them through robots.txt Maybe ur just talking about the URL and not the whole iframe code? anyway, code below :

<iframe width="300" scrolling="no" height="250" frameborder="0" src="http://ads.mysite.com/ads/juggcash_inserts/300x250_1_0_lp.php?nats=NDg0MDYwOjM6NDE" allowtransparency="true" marginheight="0" marginwidth="0" name="" rel="nofollow"> </iframe>
10:57 pm on Mar 7, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:July 10, 2005
posts:495
votes: 0


something else I also thought of after submitting that...

Is that Robots.txt kind of works differently than rel="nofollow" i would think.

PR might still be able to leak onto the external link if it's just Robots.txt'd.

rel="nofollow" specifically tells google "i don't want PR leaking onto this external link".
7:08 am on Mar 8, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


PR might still be able to leak onto the external link if it's just Robots.txt'd.


iframes don't pass PR - only anchor elements (and if used properly link rel canonical elements)
that's because an iframe isn't considered a link between web resources.


#1 technically speaking, should an <iframe rel="nofollow" do the trick or no ?


i'm guessing the rel nofollow on an iframe won't validate but it's more useless and irrelevant than harmful.


#2 any assistance using robots.txt to exclude this particular iframe banner is appreciated. Just to give me an idea , so I could do the same with the others. I never knew you could block them through robots.txt Maybe ur just talking about the URL and not the whole iframe code? anyway, code below : <iframe width="300" scrolling="no" height="250" frameborder="0" src="http://ads.mysite.com/ads/juggcash_inserts/300x250_1_0_lp.php?nats=NDg0MDYwOjM6NDE" allowtransparency="true" marginheight="0" marginwidth="0" name="" rel="nofollow"> </iframe>


making some assumptions about your url structure - i would suggest blocking any access by googlebot to the ads.example.com hostname or at least the ads subirectory.

the robots exclusion protocol is pretty simple:

The Web Robots Pages:
http://www.robotstxt.org/robotstxt.html [robotstxt.org]

Robots.txt Specifications - Webmasters Google Developers:
http://developers.google.com/webmasters/control-crawl-index/docs/robots_txt [developers.google.com]

Block or remove pages using a robots.txt file - Webmaster Tools Help:
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=156449 [support.google.com]


note that robots.txt can and should exclude googlebot from crawling the (iframed) resource but G search may index the url without crawling the content...
5:05 pm on Mar 11, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:July 10, 2005
posts:495
votes: 0


thx dude, yea I kinda forgot that we can't robots.txt external files...so i'd have to iframe it locally first, and then robots.txt those files. (directory)

I did 'not' know that iframes don't pass PR at all though. example if my iframe had <iframe=src="http://ads.externalwebsite.com

I would always feel some PR would leak. But i'm guessing your saying no, so i'll believe it.
3:31 pm on July 22, 2013 (gmt 0)

New User

joined:July 26, 2011
posts:23
votes: 0


According to a test Michael Martinez did iframes are now leaking link juice. [seroundtable.com...]

Best bet is to create a local page, noindex, nofollow it with robots meta tag and substitute that page in for the video URL.
11:06 pm on July 22, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


i would assume the flow of link juice is from the url of the iframe rather than the url of the page containing the iframe.
i'm not sure how much actual "leaking" is happening.