A password checked by a script in the page's own code protects nothing: the password or the hidden address sits in the source. Use individual logins checked on the server, over a secure connection.

A box that looks like a lock

A community soccer club's website has a page for members only. Click the link and a neat box asks for a password; type the right one, and team lists, phone numbers and meeting notes appear.

A volunteer built the site years ago, and the club hands out the password at registration each spring. It looks as solid as a bank's sign-in.

One evening a parent who works with software chose View Source on the login page. The password sat a few lines below the box, in plain words, for anyone who looked.

Where the check happens

Some password boxes are never checked by the website's server. A small script, sent to every visitor along with the page, compares what you type against a password written into the script itself.

Since the browser does the checking, the browser has to be given the answer. It arrives in the page's code, often with the address of the members' page beside it, and anyone can read that code.

Other versions disguise the password, scrambled or split into pieces. The members' page still sits at an ordinary address on the server, open to anyone who has it.

How to spot this kind of lock

These checks take a few minutes and need no special software:

The third check settles it. If the members' page opens in a browser that never typed the password, the page was never locked, whatever the box suggests.

Only the server can hold a page back

A real login works the other way round. Your details travel to the server, and the server decides whether to send the members' page at all.

Someone without a valid login never receives the page, so there is nothing to read in the source and no address that opens it. The login page's code holds no password, because none is needed there.

A page guarded only by a script can also turn up in search results. If anything links to it, or it is listed for search engines, their crawlers read it like any other page.

What members pages hold

Club members' pages gather exactly the details people would not post publicly: home phone numbers, email addresses, children's names and ages, and where a team will be on Saturday.

That is personal information. Besides the federal privacy law, several provinces have laws of their own for private organisations; where a club or business is based, and what it does with the information, decides which one covers it.

This outline is no substitute for legal advice on your own club or business. Privacy laws generally expect reasonable safeguards, and a password printed in the page's code is hard to call one.

A worked example

A tortilla maker on the Sunshine Coast supplies restaurants, food trucks and grocers along the coast. Its website has a wholesale page with the trade price list and an order form, behind a password box.

The password went out on every invoice. When a restaurant stopped buying, the password stayed the same, because changing it meant editing the page and telling every customer.

A look at the source showed the password in the script and, beside it, the address of the price list, a PDF that anyone could open directly.

Former customers could still read current trade prices, and so could a competitor curious enough to look.

The wholesale area was rebuilt behind a real login checked on the server, with an account for each customer, over a secure connection. The price list became a page inside the login, and the PDF was deleted.

When a customer stops buying, its account is switched off and no one else is affected. Prices sent only after the server has checked an account leave nothing in the page's code for anyone else to find.

What a proper members area involves

A members area worth the name gives each person or customer their own login instead of a shared word. Access can then end for one account without disturbing everyone else.

Passwords should be stored scrambled, so that even a copy of the site's database does not reveal them, and members need a way to reset a forgotten one by email.

The login and the members' pages should travel over a secure connection, the kind with https at the start of the address. Otherwise each password crosses the internet in plain text.

WordPress, Joomla and Drupal all check logins on the server and can be set up to show some pages only to members. Configuring that properly, with sensible roles and secure pages, is work for a professional.

In the meantime

Until a proper login is in place, take anything personal or sensitive off the hidden page. Practice times can stay; phone numbers and children's details should go to members by email instead.

Delete the old page and any files it linked to from the server, rather than just removing the link. Once they are gone, Webmaster Tools lets you ask Google to drop them from its results.

Then tell members what changed and why, briefly and without alarm.

The counter-case

Not every page behind a box needs a real lock. A club that keeps only practice times and a newsletter there, nothing anyone would mind a stranger reading, loses little if one does.

For that kind of page, the box works like a Members Only sign on an open gate. It is harmless as long as no one mistakes it for a lock.

The test is what the page holds. Anything personal, or worth money to a competitor, belongs behind a login the server checks, built and maintained properly.

Testing your own members page

  1. List what the members' page holds today.
  2. View the source of the login page.
  3. Open the members' address in a browser that never logged in.
  4. Move personal details off the page for now.
  5. Delete old pages and files rather than unlinking them.
  6. Plan individual logins checked on the server.
  7. Put the login on a secure connection.

Step three takes a minute and removes any doubt. A page that opens without the password is public, and every later decision follows from knowing that.

One login shared by everyone causes trouble of its own, as a print shop's upload login shared with every customer shows.


Frequently asked questions

How can I tell if our members page is really protected?

Copy the members' page address into a different browser that has never logged in. If the page opens without asking for a password, it is not protected.

Why is a password checked by a script not safe?

The script runs in the visitor's browser, so the browser must be sent the password or the page's address, and anyone can read them by viewing the source.

What does a proper members area need?

Individual logins checked on the server, passwords stored scrambled, a secure connection for signing in, a way to reset forgotten passwords, and accounts closed when people leave.

Can a hidden members page show up in Google?

Yes. If anything links to it or lists it for search engines, crawlers can read it like any other page, since nothing on the server stops them.

What should we do before a real login is built?

Take personal and sensitive details off the page, send them to members by email instead, and delete the old page and its files from the server.

Do WordPress, Joomla and Drupal have proper logins?

Yes. All three check logins on the server and can be set up to show some pages only to signed-in members, best configured by whoever maintains the site.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Members page behind a password box?

Point us to the login page, and we will check where the password is tested and what the page reveals.

Start a Conversation