script-element

How to use nofollow link in script tag [duplicate]

丶灬走出姿态 提交于 2019-12-14 04:05:34
问题 This question already has an answer here : block search engine crawling directory (1 answer) Closed 2 years ago . This is my script code: <script type="text/javascript" src="//example.com/js/infolinks_main.js"></script> I want to make crawler not to follow or index example.com/js/infolinks_main.js . How can I do this task? I have robots.txt in my root, but that URL is an external URL. NB: I do not want to use iframe . 回答1: The script element can’t have a rel attribute, so nofollow can’t be