WordPress的wp_is_mobile()函数还有用吗?
WordPress 3.4 引入的 wp_is_mobile() 函数允许开发者判别访客设备类型,从而优化内容输出,尽管随着移动设备性能提升,其应用场景有所变化。
IP地址(8) | 服务器名称 | 所属国家 |
---|---|---|
83.99.151.64 | product-search-83-99-151-64.geedo.com | LV |
83.99.151.69 | product-search-83-99-151-69.geedo.com | LV |
83.99.151.71 | product-search-83-99-151-71.geedo.com | LV |
83.99.151.70 | product-search-83-99-151-70.geedo.com | LV |
83.99.151.65 | product-search-83-99-151-65.geedo.com | LV |
83.99.151.68 | product-search-83-99-151-68.geedo.com | LV |
83.99.151.67 | product-search-83-99-151-67.geedo.com | LV |
83.99.151.66 | product-search-83-99-151-66.geedo.com | LV |
IP地址(5) | 服务器名称 | 所属国家 |
---|---|---|
81.198.74.4 | crawler-81-198-74-4.bot.geedo.com | LV |
109.229.213.23 | host-109-229-213-23.icoms.lv | LV |
46.23.42.42 | balticom-23-42-42.balticom.lv | LV |
212.142.103.56 | balticom-142-103-56.balticom.lv | LV |
83.99.151.65 | balticom-151-65.balticom.lv | LV |
对于未知蜘蛛或者爬虫。它的用途对网站来说可能是好的,也可能是坏的,这取决于它是什么。所以说,这需要站长进一步分析判断这些尚不明确的爬虫行为,再作最终决定。 但,根据以往的经验,未声明行为目的及未命名的蜘蛛爬虫,通常都有不可告人的秘密,我们理应对其行为进行控制,比如拦截。
您可以通过在网站的 robots.txt 中设置用户代理访问规则来屏蔽 GeedoBot 或限制其访问权限。我们建议安装 Spider Analyser 插件,以检查它是否真正遵循这些规则。
# robots.txt # 下列代码一般情况可以拦截该代理 User-agent: GeedoBot Disallow: /
您无需手动执行此操作,可通过我们的 Wordpress 插件 Spider Analyser 来拦截不必要的蜘蛛或者爬虫。
GeedoBot是一个用于扫描网页的程序,特别是网上商店,以找到供全世界购买的产品。
Mozilla/5.0 (compatible; GeedoBot; +http://www.geedo.com/bot.html)
使用反向DNS查询来检查GeedoBot的真实性:
1. 从你的日志中对访问的IP地址运行反向DNS查询。验证域名是否以bot.geedo.com结尾。
# host 81.198.74.4 4.74.198.81.in-addr.arpa domain name pointer crawler-81-198-74-4.bot.geedo.com.
2. 对检索到的域名进行DNS前向查询。验证它是否与原始访问的IP地址相匹配
# host crawler-81-198-74-4.bot.geedo.com crawler-81-198-74-4.bot.geedo.com has address 81.198.74.4
不提供IP地址的公开列表,因为它们可能会改变。
为了限制GeedoBot,使用速率限制指令,设置请求之间的最小间隔时间(秒)。
User-agent: GeedoBot Crawl-delay: 10
如果您想阻止GeedoBot访问您的某些内容,您可以通过指定GeedoBot为用户代理来实现这一目的:
User-agent: GeedoBot Disallow: /forum