htmlseobotsgooglebot

How to prevent crawlers from following links?


I'm building a site that will allow sellers to:

What I need to do now is to somehow make sure that I am only logging actual human users following the links to the sellers site. If it's a bot crawling the site, I shouldn't be charging the sellers for that.

Is there a way for me tell bots not to follow a certain link? I don't think it's nofollow as that is not intended to block access to content.


Solution

  • The way to tell a bot not to follow a link is precisely to add rel=nofollow to your <a> tag. Assuming you are also logging locally before forwarding to the external url you could also check the user agent string.

    In fact, if you are going to ask people to pay based on number of referrals it might be an idea to log IP address and user agent against each paid for click in case your stats are ever questioned.