so I have a config.json file which I want to block external connections for such as people accessing it directly, It's required for my script to run on so I want to whitelist only my own server which is hosting the file and not any external connections.
I tried this in my VirtualHost config but it doesn't seem to be working as it gives 403 forbidden error for even my script which is on the same server.
<Files config.json>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
Please help, Thanks!