Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

How Can I Check For Rel="no Follow"


  • Please log in to reply
5 replies to this topic

#1 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 410 posts

Posted 28 April 2014 - 03:34 AM

Usually you just view source and that will instantly tell you if a link is "no-follow" but I have a problem!

I have an AJAX based search function that spits out links that I would like to be "no follow" (since they are affiliate links) - and when I perform a search I can't see the code that has been rendered (must be b/c of the AJAX/ Javascript functionality).

Can anyone think of another way to check if my code is producing "no-follow" - any other work around except for view source?

Thanks



#2 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,642 posts
  • Location:UK

Posted 28 April 2014 - 03:47 AM

If you're doing stuff with AJAX then usually you have to work very hard to ensure that search engines can see it, so you probably don't have a problem.

 

You can review the live DOM using Google Chrome - just right click the link on screen and select "inspect element".

 

Alternatively use robots.txt rather than nofollow.



#3 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 410 posts

Posted 28 April 2014 - 03:53 AM

Thanks -

 

Alternatively use robots.txt rather than nofollow.

 

That's interesting - how would that work? Are you suggesting to block the entire directory from being crawled (by bots that behave?)

 



#4 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,642 posts
  • Location:UK

Posted 28 April 2014 - 03:57 AM

Yes, if your search function is "spitting out links" then that suggests you have some choice in the URL structure of those links, e.g. they all begin (or could begin) with "/search". If so, then you could selectively add links to robots.txt


  • Michael Martinez likes this

#5 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 410 posts

Posted 29 April 2014 - 02:23 AM

the AJAX directory that has a list of the affiliate links is in a directory called /js/ - i.e. javascript.

So the location is - mysite. com / js /

Do i just add that to the robots file? Is that the best way to manage it?

Thanks!



#6 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,642 posts
  • Location:UK

Posted 29 April 2014 - 03:30 AM

That would be a way, although in general search engines don't like you stopping them peeking at your Javascript - just in case you have some nasty stuff in there. It could be considered a negative ranking signal.

 

Better if the link itself was robots.txt'ed out - so suppose /js/ajaxsearch.js is currently outputting links to /searchresults/goto?loc=dest, (where in this example /searchresults/goto is a handy click counting redirect script, with the redirect going to dest), then you can disallow /searchresults/ in robots.txt


  • Jill likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!