Apache forbids reptiles
Apache
①, by modifying the.htaccess file
Modify.htaccess under the website directory and add the following code
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (^$|FeedDemon|JikeSpider|Indy ) [NC]
RewriteRule ^(.*)$ - [F]
②. By modifying the httpd.conf configuration file
Find the following similar location, add/modify according to the following code, and then restart Apache:
DocumentRoot /home/wwwroot/xxx
SetEnvIfNoCase User-Agent ".* (FeedDemon|JikeSpider|Indy )" BADBOT
Order allow,deny
Allow from all
deny from env=BADBOT