Hello,
I'm trying to deny a user agent except for when it come from a certain ip range.
I've figured out how to deny the ua...
I'm using
RewriteCond %{HTTP_USER_AGENT} ^NSPlayer [NC]
RewriteRule ^.* - [F,L]
but I would like to allow that user agent - ONLY if it comes from a certain IP range.
Do I need to change the mod-rewrite to the deny, allow form?
Would it be something like this?
SetEnvIfNoCase User-Agent ^NSPlayer BAD_BOT
Order Deny,Allow
Deny from env=BAD_BOT
Allow from 123.45.67/15
Any suggestions - much appreciated