I have a .htaccess inside a folder with:
Order Deny,Allow
Deny from all
Allow from localhost
Satisfy Any
I try to limit access to a file that contains a hashed key, only to the same domain, to avoid Cross-site request forgery. I want only example.com to be able to read that file and not foreign_example.com, but when i read the file with a GET request a status of 403 forbidden is showed.
Edit1: I am using LiteSpeed Web Server which support htaccess module from Apache.