How to Block Bots with robot.txt File via cPanel?

How to Block Bots with robot.txt File via cPanel?

Bot traffic refers to internet traffic that is generated by automated software programs, or “bots,” rather than human users.Some bot traffic may be harmless or even beneficial, such as bots used by search engines to index web pages, other types of bot traffic can be damaging to websites.

  1. Login to your cpanel account.
  2. Go to the files section and click on file manager.
  1. The file manager interface will be open. Click on + icon.
  1. Enter file name as a robot.txt and click on create new file.
  1. Right click on file name and click on edit
  2. Type below code in the file-

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC]

RewriteRule .* – [F,L]

  1. Click on save changes file and close file.