Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Camille Petersen
February 6, 2010, 6:48 pm
rate this thread
I would like to protect a certain web page by a password (one password for all
The protection need not to be on military level.
Think of a private photo gallery.
It should be however simple to setup without access and configuration of web
As far as I remember I have seen such a protection some years ago with
The user enters a password
which is converted to hashcode and compared with a predefind built-in hash-code.
Does someone have a sample code for this?
or an alternative simple solution?
On 06 Feb 2010, email@example.com (Camille Petersen) wrote:
Why not just name the page the password word, put an index in the same
folder to prevent folder-viewing, and obfuscate the link with j/s?
On 2010-02-06 13:48, Camille Petersen wrote:
Most hosts offer a way of making selected directories password
protected, so that access to any file within that directory will result
in the user being prompted for a username and password. This is simple,
Check what your host offers.
06 Feb 2010 18:48:21 GMT from Camille Petersen
You may well have seen it, but think for five seconds.
something like 10% do?
protection scheme hat relies on it will not prevent the "protected"
pages being indexed.
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
HTML 4.01 spec: http://www.w3.org/TR/html401 /
validator: http://validator.w3.org /
CSS 2.1 spec: http://www.w3.org/TR/CSS21 /
validator: http://jigsaw.w3.org/css-validator /
Why We Won't Help You:
If the page will be protected, the OP might be able to know if all the
- get the [protected] content in a readable form (because the script was
designed to be run when the page is being loaded and somehow prevents
the content from being loaded if the password is wrong)
- get the content in an unreadable but decypherable form (because the
a big chunk of data using some method)
- get content they can't read without the password (because it's
encrypted using the password)
(But HTTP authentication sounds simpler :-))
The problem is avoided /as far as the content (or the right address) is
encripted or obfuscated/.
I wrote "or the right address" because this might be just a page that
will point the user to the secret page.
Nuno J. Silva
On Feb 6, 1:48=A0pm, cpet_mag...@hotmail.com (Camille Petersen) wrote:
You're probably not getting a lot of answers because you're on a CSS
Your best bet, though, is to do this on the server instead. If you
have something like cPanel, then you can password protect a directory
with about 2 clicks. Failing that, I'd do it in Perl or PHP before
to hack that it would almost defeat the purpose of having it.
On 6 Feb, 18:48, cpet_mag...@hotmail.com (Camille Petersen) wrote:
These days? I wouldn't think of it in those terms.
Instead of "Here's a file system full of HTML files. Here's a web
server. How do I add protection?" I'd take it another way. Instead
place all your content into a database and access to it is only
possible through some dynamic web page, i.e. server-side code. As
everything is inherently "gatewayed", it's easy to add access control.
Now the neat part is, if this is a "photo gallery" then you're
probably already using the "single dynamic page and database for
content storage" approach, even if it's some chunk of PHP that you
downloaded rather than writing yourself. Find a suitable gallery
product like this, there should be some out there that support access