The Better Way to Hide Links from SEO Crawlers
It’s no question that hiding links is critical to any successful SEO campaign.
When building links, especially on PBNs and the like, it’s important to block SEO crawlers like Ahrefs (ahrefsbot) and Majestic (MJ12Bot). Most SEOs accomplish through abhorrent .htaccess lists of bots to block.
The current solutions are…
- .htaccess files
- Not always applicable if you don’t have full control over the site
- Often times blocked from being edited
- Require some technical know-how, updating, and blind trust
- Footprint if set up incorrectly
- Blind trust / copying pasting code you find online is bound to lead to problems
- Most .htaccess codes available online redirect bots to webMD.com
- Viewing the redirects to webMD.com on Ahrefs, we can see thousands of PBN sites
- Another footprint among the many because why not
- WordPress plugins
- Not so great if you’re not using WordPress
- Require blind-trust in the author of the plugin
- Footprint if (when) set up incorrectly (more on that in another post)
This is what the SEO crawlers will see (no visible links), but here is what Google will see.
Because we broke the link up into two parts (variable a and variable b) and combined the variables when the page loaded, we were able to hide our link from third party SEO crawlers.
You can view the code for this here. Replace link with your anchor text, and replace the URL split among the two variables with your own.
After doing so, simply invoke your link by using <span id=“target”></span> instead of the hyperlink HTML code.