Please can you tell me in Apache2 how I can restrict a url to my IP address when the url is generated as a script. For example:
example.com/?admin
I have tried Location Match but no joy:
<LocationMatch /?admin>
Order Deny,Allow
Allow from [MY IP]
Deny from all
</LocationMatch>
You could use mod_rewrite to match the %{QUERY_STRING} and disallow anything that's not empty, unless it's from your IP. Check the wiki for examples.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.