-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.

1
  • Why prevent access if you're going to allow bypassing restrictions?
    – djdomi
    Commented 18 mins ago

0

You must log in to answer this question.

Browse other questions tagged .