Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第70天 html的a标签属性rel='nofollow'有什么作用? #498

Open
haizhilin2013 opened this issue Jun 24, 2019 · 3 comments
Open
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第70天 html的a标签属性rel='nofollow'有什么作用?

@haizhilin2013 haizhilin2013 added the html html label Jun 24, 2019
@xiangshuo1992
Copy link
Contributor

告诉爬虫,别往下走了,防止爬虫跳出自己的站点。
爬虫默认遇见链接,会继续爬取链接的内容。

@Toeat
Copy link

Toeat commented Nov 14, 2019

nofollow有两种用法:
1.用于meta元标签:
<meta name="robots" content="nofollow" />
告诉爬虫该页面上所有链接都无需追踪。
2.用于a标签:
<a href="login.aspx" rel="nofollow">登录</a>
告诉爬虫该页面无需追踪

@MrZ2019
Copy link

MrZ2019 commented Jan 14, 2021

nofollow有两种用法:
1.用于meta元标签:
<meta name="robots" content="nofollow" />
告诉爬虫该页面上所有链接都无需追踪。
2.用于a标签:
<a href="login.aspx" rel="nofollow">登录</a>
告诉爬虫该页面无需追踪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

4 participants