tags:

views:

26

answers:

1

Hi, i have a directory:

/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?

A: 

Try this:

<Files "*.json">
    Order Deny,Allow
    Deny from all
</Files>
Ken Keenan
i meant in the .htaccess file
andufo
That _will_ work in .htaccess, unless the AllowOverride directive in httpd.conf has been set to prevent you doing so
Ken Keenan
oh i see... it worked. thanks!
andufo