In my .htaccess file I'm trying to block some bots using:
RewriteCond %{HTTP_USER_AGENT} ^badbot [NC]
But, I want to change these conditions to something more inclusive like:
Method #1: RewriteCond %{HTTP_USER_AGENT} .*badbot [NC,OR]
OR
Method #2: RewriteCond %{HTTP_USER_AGENT} ^.*badbot [NC,OR]
OR
Method #3: RewriteCond %{HTTP_USER_AGENT} badbot [NC,OR]
The question is, which one of those 3 methods would be best for server performance?
Thanks!