1 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>
Your Answer
x