htaccess code RewriteEngine on
# This if for denying a specific useragent
# (testing purposes) RewriteCond %{HTTP_USER_AGENT} ^.*Mozilla.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*useragent name here.*
RewriteRule ^.*$ - [F,L]
htaccess code RewriteEngine on
# This if for denying a specific ip
# (testing purposes) RewriteCond %{REMOTE_ADDR} ^youriphere[OR]
RewriteCond %{HTTP_USER_AGENT} ^ipaddresshere
RewriteRule ^.*$ - [F,L]