Quantcast
Channel: Active questions tagged heroku - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 44

How to protect my files on Heroku

$
0
0

My sendemail.php file is located in the root of my website, is there a way to protect it? Also i want to protect or hide my js folder, so noone can see my code with direct link or via the google inspect console. I have tried the following with htaccess, the files don't appear in the console but i can see them with direct link. Here is what i have in the htaccess:

#<Files ~ "\.js$"> #   order allow,deny  #  deny from all#</Files>

For example on a website i inspect with firebug and i can't see the files.

enter image description here


Viewing all articles
Browse latest Browse all 44

Trending Articles