bot block on wordpress



hi i’ve add this to robots.txt, it’s enough to block bot, or there is any best practice
User-agent: *
Disallow: /


This will block everything, including search engines. And it is no guarantee that it will block bad bots at all, it works only if bot is actually using robots.txt file, and most of them don’t do that at all.


there is any best practice mr @GDragoN


I have plugin called Smart Robots.txt Tools in my CodeCanyon portfolio for WordPress where you can customize robots.txt file, but that still doesn’t solve bad dots. I have also Smart Security Tools plugin and addons for it that are made to stop all sorts for bots, scanners and attacks, but it is for WordPress only.