WordPress的wp_is_mobile()函数还有用吗?
WordPress 3.4 引入的 wp_is_mobile() 函数允许开发者判别访客设备类型,从而优化内容输出,尽管随着移动设备性能提升,其应用场景有所变化。
IP地址(4) | 服务器名称 | 所属国家 |
---|---|---|
66.249.70.82 | crawl-66-249-70-82.googlebot.com | US |
66.249.76.40 | crawl-66-249-76-40.googlebot.com | US |
66.249.76.72 | crawl-66-249-76-72.googlebot.com | US |
66.249.76.37 | crawl-66-249-76-37.googlebot.com | US |
66.249.76.196 | crawl-66-249-76-196.googlebot.com | US |
66.249.75.105 | crawl-66-249-75-105.googlebot.com | US |
66.249.75.107 | crawl-66-249-75-107.googlebot.com | US |
66.249.76.195 | crawl-66-249-76-195.googlebot.com | US |
66.249.66.162 | crawl-66-249-66-162.googlebot.com | US |
66.249.66.34 | crawl-66-249-66-34.googlebot.com | US |
66.249.66.161 | crawl-66-249-66-161.googlebot.com | US |
66.249.76.34 | crawl-66-249-76-34.googlebot.com | US |
66.249.66.33 | crawl-66-249-66-33.googlebot.com | US |
66.249.76.33 | crawl-66-249-76-33.googlebot.com | US |
66.249.66.65 | crawl-66-249-66-65.googlebot.com | US |
66.249.66.64 | crawl-66-249-66-64.googlebot.com | US |
66.249.66.89 | crawl-66-249-66-89.googlebot.com | US |
可能不需要。工具类型爬虫通常为网站所有者使用此类工具对网站进行相关服务请求才会出现。当然,实际情况需站长判断后再作决定。
您可以通过在网站的 robots.txt 中设置用户代理访问规则来屏蔽 Google-InspectionTool 或限制其访问权限。我们建议安装 Spider Analyser 插件,以检查它是否真正遵循这些规则。
# robots.txt # 下列代码一般情况可以拦截该代理 User-agent: Google-InspectionTool Disallow: /
您无需手动执行此操作,可通过我们的 Wordpress 插件 Spider Analyser 来拦截不必要的蜘蛛或者爬虫。