I have a website I am developing that is also going to be pulled into a web app. I have the following code in my .htaccess file to prevent access from ANYONE th
.htaccess
Allow from and Rewrite* are directives from two different Apache's modules.
Allow from
Rewrite*
The first one is mod_authz_host and the other from mod_rewrite.
mod_authz_host
mod_rewrite
You can use mod_rewrite to do what you want:
RewriteEngine on RewriteCond %{HTTP_USER_AGENT} !=myuseragent RewriteRule .* - [F,L]