Old sign-up scripts can save every name and address to a file in the public folder. Move the list out of public reach, delete the file and its copies, and check what else the script kept.

A mailing list in the open

A community theatre's website has had a newsletter sign-up box for years. A volunteer looking for an old poster in the site's folder comes across a file called subscribers.txt.

It holds every name and email address entered since the box went up. Typed into a browser, its address opens the whole list for anyone.

The script behind the box saves each sign-up to a text file beside itself, in the public folder, where the web server will hand it to whoever asks.

Why a file in the public folder is public

Everything in a website's public folder can be requested by address: pages, images and any other file left there. The server has no idea the list is meant to be private.

Some servers also show a folder's contents when it has no home page, so the file can be found by browsing rather than guessing.

And names like subscribers.txt or list.csv are the kind automated scanners try, site after site, looking for something worth taking.

How a list like this gets found

There are several routes from a forgotten file to a stranger's computer:

Search engines are the route few organisations imagine. A search for the theatre's name and a file type can bring up the list itself.

Move the list out of reach

The first job is to get the list out of the public folder. Move it above that folder on the server, where scripts can still read it but browsers cannot reach it.

Better still, have the form store sign-ups in a database or pass them straight to the mailing service, so no file of addresses sits on the web server at all.

Until that is done, a developer can block the file with a server rule, but treat that as a stopgap rather than the fix.

Delete the old file, and its copies

Once the list is safe elsewhere, delete the public file. Then look for copies: backups ending in .bak or .old, exports saved as .csv, and zip files of the whole site left in the folder.

Then search Google for your site with the file's name. If it shows up, ask for the address to be removed through Webmaster Tools now that the file is gone.

Check what the script has been keeping

Old scripts often record more than anyone remembers. Look at what each saved line holds: phone numbers, postal addresses, the visitor's internet address, or messages from a contact form.

Some scripts also write a log of every submission, or email the list to an address that belonged to a volunteer who left years ago.

Then read the server's access logs, if the host keeps them that long. They record every request for the file, which shows whether it was downloaded, and when.

A worked example

A beekeeper in Salmon Arm sells honey, beeswax candles and comb honey at markets and from the farm gate, and keeps a list of customers who want to hear when the fall honey is ready.

The sign-up form on the website came from a free script added years ago. It saved each sign-up as a line in a text file beside the form.

A regular customer said that searching for the farm's name had turned up a page of names and email addresses, so the beekeeper asked a developer to look.

The developer found the list in the public folder, an older copy ending in .old, and a second file the script had been filling with each visitor's internet address and the time.

The list went into the mailing service's account, the form now sends sign-ups straight there, and all three files were deleted. A removal request in Webmaster Tools took the address out of Google's results.

With no file of addresses left on the web server, a scanner or a search engine has nothing at a guessable address to find.

Other forms that write files

The same kind of script was often used for contact forms, quote requests and event registrations. Check every form on the site for the same habit of saving to a file.

Registration forms deserve the closest look, since they can hold phone numbers, home addresses and the names of children enrolled in a youth program.

Telling the people on the list

If the logs show the file was downloaded by strangers, consider telling subscribers plainly what happened and what has changed.

The rules on a list like this vary across Canada. Some provinces regulate private organisations' handling of personal information through their own statutes, and the answer can turn on where you operate and what you do with the list.

That question belongs with a lawyer; this post is a general guide only, and not legal advice for any one list.

The counter-case

A sign-up form that hands addresses straight to a mailing service, with no file on the server, does not have this problem at all.

And a list of a few dozen first names may seem too small to matter. But email addresses are what spammers collect, and the people on the list trusted you with theirs.

Checking takes a developer or the host a few minutes with access to the server's files, and it is worth doing on any site with a form older than its current design.

Clearing the list from the public folder

  1. Look in the public folder for .txt, .csv and .bak files.
  2. Move any list out of the public folder or into the mailing service.
  3. Change the form so it no longer writes a file.
  4. Delete the old files and every copy of them.
  5. Search Google for your site with those file names.
  6. Request removal of any result through Webmaster Tools.
  7. Read the access logs for downloads of the file.

Step three is what stops the list coming back. Move the file but leave the old script running, and it starts a new list in the same place with the next sign-up.

Another forgotten tool in the public folder, found the same way by scanners, appears in a database manager left in the website's own folder.


Frequently asked questions

How can a sign-up list end up public?

An old script saves each sign-up to a text file in the public folder, and the web server hands any file there to whoever requests its address.

Can search engines really find a text file?

Yes, if it is linked from anywhere or shown in a folder listing. Search engines index text files much as they index ordinary pages.

Where should the list be kept instead?

Outside the public folder, in a database, or better, in your mailing service's account, with the form sending sign-ups straight there so no file remains.

Is deleting the file enough?

Not on its own. Delete its copies and backups, change the script so it stops writing a new file, and request removal of any search result.

How do we know whether the list was downloaded?

The server's access logs record each request for the file, with the date and time. Ask your host how far back its logs go.

Should we tell the people on the list?

If strangers downloaded it, telling subscribers plainly what happened and what changed is the decent course. Ask for advice on what the rules require for your organisation.

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.

An old sign-up form still running on your site?

Give us access to your hosting account, and we will check where each form stores what visitors type and move anything exposed.

Start a Conversation