-1

I'm using the following .htaccess to allow access to my website by IP address:

<Limit GET POST>
 Require all denied
 Require ip x.x.x.x
 Require ip y.y.y.y
</Limit>

I was wondering if it were possible to add an if statement so when a visitor adds a secret value like "?bypass=1" to the URL the IP check is skipped.

2
  • Why prevent access if you're going to allow bypassing restrictions?
    – djdomi
    Commented 2 hours ago
  • @djdomi Just in case.
    – vespino
    Commented 1 hour ago

0

You must log in to answer this question.

Browse other questions tagged .