To Block Bots Using Robot.txt File
1. Log in to your cPanel account.
2. Go to the FILES section and click on File Manager.
The File Manager interface will open. You will have to create the robot.txt file.
3. Click the +File button on the top left corner of the interface.
4. Enter the file name as robot.txt and click the Create new file button.
5. Locate and right-click on the robot.txt file. Select the Edit option.
The file will open for you to enter/edit its information.
6. Copy this code in the file.
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC] RewriteRule .* – [F,L]
This code will block the bot from the Baidu search engine.
7. Click the Save Changes button and Close the file.
With this robot.txt file, the Baidu search engine cannot use bots on your website.