1

I need to configure my Apache (2.4) in a way, that It prevents answering requests that

  1. don't come from the same IP as the server

  2. match a specific pattern in the URL

In pseudocode it must look something like this, but I'm having a hard time translating this in valid Apache config syntax

<If "%{CLIENT_IP} != %{SERVER_IP} &&  %{REQUEST_URL} contains 'abcde' ">
  Require all denied
</If>

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.