There is more than one way, I am sure. You can create access control using mod_rewrite and [F] according to any criteria that you would define. See, for example, Access Control with mod_rewrite . That says you can do it.
<Location /admin> [here your rules] </Location>
Require for context , which means you can use it in context
<Directory>, <Location>, <Files>, and <Proxy>
:)
source share