Come, meet us at brightonSEO, UK on 25th and 26th April 2024 Click here
Scroll to top

Is it Possible That a JavaScript Override a “No Follow” Meta Tag?

JavaScript-Nofollow

JavaScript facilitates interactive web pages. Thus, it is an essential part of web applications. The nofollow directive is oftenly used value in a Meta Tag. This can be added to the HTML source code of a webpage to suggest to search engines not to pass link equity through any links on a given webpage. Links are a significant part of search engine optimization. Though experts argue all the time how big of a role links play in overall ranking.

If you end up in a scenario where you need Google to index sure pages, but you are required to make use of a template that makes use of the “nofollow” robots.txt Meta Tag. Would you utilize JavaScript to take away the tag?

As a response to this question, John Mueller, Google Senior Webmaster Developments Analyst, said that Google will use essentially the most restrictive setting you have on the web page, irrespective of the way it is included.

Using the “noindex” tag is nearly essentially the most restrictive situation you will be able to apply to a web page. If suppose a web page has a “noindex” in static HTML, and JavaScript is used to take it away when the web page is rendered, Google will nevertheless see the “noindex”. Also, adjust to the request.

“Noindex” would override different robots.txt Meta Tags. For example, if in case you have a “noindex” + “index”, then the “noindex” will supersede the “index.” Also, if a web page doesn’t even have any Meta Tags, and for some reason you utilize JavaScript, then you may add a “noindex” tag. Google will certainly honour the “noindex” request.

JavaScript could be an extremely effective workaround for a lot of limitations or necessities. But within the case of “noindex”, it merely would n’t receive work.

Author avatar
brandconn
https://www.brandconn.com
Public advisory against the common scams. Click to read more.