php - How do I prohibit access to one of my folders with .htaccess? [Ubuntu] -


i running digitalocean droplet ubuntu 14.04 x64.

in /var/www/html directory, have include/ folder of files include in php files aren't standalone. prohibit direct url access (return 403 errors) these files, still make standalone files can include them.

i have tried creating .htaccess file inside include/ folder containing:

<files *>     order deny,allow     deny     allow {my droplet ip address} </files> 

this not prohibiting access. right approach? .htaccess file wrong? ip address allowing wrong?

thanks.

have tried options -indexes create .htaccess file content , place inside folder.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -