I have an HTML file that I don’t want the public to have access too.
My host supports PHP, JavaScript, MySQL, and Ruby on Rails…What’s the easiest “Secure” way of doing this? It doesn’t have to be too deep, just enough to keep it out of public access.
Most hosts have a mechanism for settng up a protected directory. Then anything including HTML pages that are in that directory have the Username/Password challenge presented when you try and load the HTML page. Check with your host to see how to set this up…
April 11th, 2008 at 4:32 pm
If you’re running on an apache server, you can use a .htaccess file.
Scroll down to the authentication section.
April 14th, 2008 at 6:15 am
This site should give you what you want.
April 15th, 2008 at 12:32 pm
Most hosts have a mechanism for settng up a protected directory. Then anything including HTML pages that are in that directory have the Username/Password challenge presented when you try and load the HTML page. Check with your host to see how to set this up…