Ad

binoweasley
asked Sep 24 2018
Answer
Do the configuration in the following location
/usr/local/apache/conf/includes/previrtualhostglobal.conf
Say for example if you want to remove "libwww-perl" add the following in "/usr/local/apache/conf/includes/pre_virtualhost_global.conf"
<LocationMatch ".*"> SetEnvIfNoCase User-Agent "^libwww-perl" bad_bot Deny from env=bad_bot </LocationMatch> <If "%{HTTP_USER_AGENT} == 'libwww-perl'"> Deny from all </If> <Directory /> SetEnvIfNoCase User-Agent "^libwww-perl" bad_bot Deny from env=bad_bot </Directory>

gokulravichandran2
asked Sep 28 2018
edited Oct 30 2018
global configuration for blocking "bad bots"
Where can I add global configuration for blocking "bad bots" in cPanel Server?