当前位置:网站首页>How to shield yandexbot
How to shield yandexbot
2022-07-16 05:05:00 【oHuangBing】
We often get a lot of YandexBot visit , We know YandexBot yes Yandex Search engine Reptiles .
a large number of YandexBot visit , It not only causes great pressure on the server , At the same time, it will also make normal visitors visit the website slower , Influence the experience .
For the above reasons , We have to limit YandexBot The interview of , But one thing to note : Limit Yandex Visit will lose Yandex Bring us traffic , Because of the limitation Yandex Crawler index our website , So when users are in Yandex When searching our website for topic words , There will be no show , So it won't bring us any traffic .
If Yandex Didn't bring us any visitors , Then let's block it !
We can shield in the following three ways Yandex:
IP Address masking
We go through list crawlers YandexBot Check out YandexBot Of IP Address , Let's put these directly IP Just add it to the blacklist , I take Ubuntu Operating system as an example , How to integrate IP Join the blacklist of firewall :
sudo iptables -A INPUT -s 213.180.203.82 -j DROP
above IP The address is that we passed list crawlers YandexBot Page query IP , Directly one by one IP Just type in , One line at a time .
benefits : Direct and rapid .
shortcoming : Some may be missed YandexBot Of IP Address .
adopt User-agent shielding YandexBot
Through my article :yandex bot user agent, We can see each one YandexBot The specific User-agent, We are Nginx It can shield specific User-agent:
if ($http_user_agent ~* "Yandex")
{
return 403;
}
So we can get through User-agent shielding YandexBot The purpose of .
advantage : Can quickly and directly shield YandexBot.
adopt robots.txt shielding YandexBot
In the previous article, I have introduced how to pass robots.txt shielding YandexBot 了 , I won't say much here , You can read this article if you need :block yandex bot
advantage : Comply with official specifications .
shortcoming :Yandex Some of the reptiles do not obey robots.txt agreement , Use robots.txt agreement It can't be shielded .
summary
This article uses three ways to shield YandexBot, And introduced the advantages and disadvantages , There is always a way for you .
Finally, I need to reiterate : If Yandex It doesn't bring you any traffic , You can safely shield , If Yandex It brings you traffic , Think twice before you act .
边栏推荐
- How to deal with the five obstacles of teamwork
- 微服务模式:Sidecar
- ThreadLocal类简单介绍
- DCL单例模式
- Mindjet MindManager adding image labels
- 735. 行星碰撞 : 简单栈模拟运用题
- 快速教你如何搭建数据驱动自动化测试框架?
- [underlying principle] what is a socket? Why is the network inseparable from socket?
- [route optimization] HWSN energy-saving clustering protocol based on biogeography optimization with matlab code
- C语言综合训练 —— 通讯录(使用动态内存)
猜你喜欢

The parameters trained by tensorflow are transformed into those under Caffe framework Caffemodel model

Continous Gesture Recognition with hand-orented spatiotemporal feature

这几款手机安全浏览器,好用不止一点点

“偷师”大厂:可以参考的七种产品开发策略

分库分表真的适合你的系统吗?聊聊分库分表和NewSQL如何选择

Project management in the eyes of software testers

C language comprehensive training - address book (using dynamic memory)

SkiaSharp 之 WPF 自绘时钟(案例版)

fiddler和charles拦截并修改请求和返回值

边缘计算 KubeEdge+EdgeMash
随机推荐
Project management in the eyes of software testers
A systematic framework for describing the impact of machine learning on greenhouse gas emissions
深度学习神经网络的正向传播(一)
block yandex bot
[底层原理]Socket 究竟是什么? 为啥网络离不开 Socket?
With 70000 US dollars and 200 million US dollars, the Jiangxi female boss is going to IPO
[underlying principle] what is a socket? Why is the network inseparable from socket?
LeNet5、AlexNet、VGGNet、ResNet
2018-cvpr-Gesture Recognition: Focus on the Hands
Autodesk Desktop Licensing Service出现错误1067处理办法
视频孪生:智慧园区信息化升级的抓手
一群南大学子靠科技出海,年入10亿
Basic part of C language: minesweeping
plantUML使用总结
How can testing bring more value? Talk about test shift left and test shift right
Young people begin to "rectify" assassins in shopping malls
How to write effective interface tests?
提示您与该网站的连接不是私密连接怎么办?
信息系统项目管理师必背核心考点(四十一)风险管理计划
Skiasharp's WPF self drawn clock (case version)