Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had more simple and dumb approach in past. Lets say you have some password like "super-secret". Just place a secret "html" with content under the directory with the same name as your password. In public page have some prompt with password. When user enter password, you either redirect, dynamically inject iframe with your page. Since there is no way to list files/dirs of http server, it does pretty good job.


I wouldn't consider that awfully secure...

Your local browser will be saving your 'password' unencrypted in the cache and history, and maybe syncing to other devices.

Any workplace security system will probably be keeping records of your 'password'.

Any mistake on the web server could turn on directory listing, revealing the password.

Some other user of the web server, even a sandboxed low privilege process, will often have the ability to list directories.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: