【发布时间】:2017-11-17 09:02:06
【问题描述】:
这是我的脚本代码:
<script type="text/javascript" src="//example.com/js/infolinks_main.js"></script>
我想让爬虫不关注或索引example.com/js/infolinks_main.js。
我怎样才能完成这项任务?我的根目录中有 robots.txt,但该 URL 是外部 URL。
注意:我不想使用iframe。
【问题讨论】:
-
我可以将 rel="nofollow" 放在脚本标签中吗?它会像一般工作一样###
标签: html nofollow script-element