1

I've a website and i'm trying to block direct access to 2 specific folders and inside files, except for internal requests. I already tried using: RewriteCond %{REQUEST_URI}, RedirectMatch and Deny/Allow rules.

They work fine blocking the direct access but local requests are blocked too and trying to put "localhost","127.0.0.1" or "127.0.0.1::1" as an exception doesn't work, so the result is that my index page can't access essential files like main CSS. Any ideas?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
gianprito
  • 23
  • 4

0 Answers0