I have the following directory:
examples
file.php
file2.php
helpers
file3.php
secret
.htaccess
index.html
file.json
.gitignore
index.php
README.md
My .htaccess file contains the following:
RewriteEngine On
# Protect the htaccess file
<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>
RewriteRule ^(secret/|*\.json) - [F,L,NC]
<Files "*.json">
Order Allow,Deny
Deny from all
</Files>
When entering the secret folder by url link it does not show me anything (this works fine) but if I enter the .json file inside this folder link if you show me the content
How can I fix my .htaccess so that it does not show the contents of that file?