Tutorial :Blocking specific extensions in htaccess



Question:

I have a directory with files like:

/files/archive.01.json  /files/archive.02.json  /files/archive.03.json  /files/hello.php  

I need the .htaccess to block access to all .json files in that directory. Any ideas?


Solution:1

Try this:

<Files "*.json">      Order Deny,Allow      Deny from all  </Files>  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »