Remove any database tool from the website's folder, along with old backups and test pages. Change the database password, and do future database work through your hosting control panel's copy, which the host keeps updated.

A login page left behind

A law office's website has run without trouble for years. Then its host forwards a warning: thousands of requests from unfamiliar computers, all aimed at one address on the site.

That address holds a database management tool. A developer copied it into the website's folder long ago to fix something quickly, and it was never taken out.

Anyone who types the address gets a login page for the site's database. The partners had no idea it existed.

What the tool can do

A web-based database manager lets someone read, change, export or delete every table in a site's database from a browser. Developers find it handy, which is why copies end up in website folders.

Behind its login sits everything the site stores: contact form entries, newsletter sign-ups, user accounts, and the settings that run the site itself.

A copy reachable from the open internet is a second front door to all of that, often older and weaker than the site's own login.

Why scanners find it

No one needs a link to find it. Automated scanners visit every site they come across and request a list of common folder names, the names these tools are usually given.

Where a login page answers, the scanner tries default and common passwords, then known flaws in older versions of the tool, some of which let it in without a password at all.

Some copies were set up to log in automatically, with the database password saved in the tool's own settings file. Anyone who finds the address is already inside.

Other things left in the web folder

The database tool is rarely the only leftover. When a site's folder is checked, these turn up often:

Each one was useful for an afternoon. Left in place, each tells a stranger something, and some hand over the data outright.

What the access logs show

Your host keeps access logs: a line for every request the site receives, with the address asked for and the computer that asked. They show who has been knocking on that folder.

Ask the host or your developer to search them for the tool's address. Requests answered with a login page are expected; logins that succeeded from unknown addresses are not.

A worked example

A fundraising consultant in Victoria helps charities plan annual appeals and gala dinners, and runs workshops for their volunteer boards. Her website takes workshop registrations and newsletter sign-ups, stored in its database.

Four years ago a developer installed the database tool in the site's folder to repair a damaged table. The repair worked, and the tool stayed, at an obvious address.

When the consultant asked her host about odd entries in her site's traffic reports, the host found scanners requesting that folder many times a day. The tool was several versions out of date.

A developer removed the folder after the host made a backup, kept off the server. The database password was changed, since the tool's settings file had held it.

The site's own settings were updated to match, and the database was checked for accounts and records no one recognised. Any database work now happens through the host's control panel.

The scanners still ask for that address. They get a page-not-found error, because there is no longer anything there to answer.

The copy in the control panel

Most hosting control panels include the same kind of database tool. It sits behind the hosting account's login, not at an address on your website.

The host keeps that copy updated, so known flaws are fixed without anyone on your side having to remember.

A developer who needs the database can use it there. If a separate copy is unavoidable for a job, it belongs behind its own password, and it comes out when the job ends.

Passwords after the removal

Removing the tool closes the door; it does not tell you whether anyone walked through it. Treat every password the tool could have revealed as known.

Change the database password and update the site's settings file to match. Then change the hosting account, FTP and website admin passwords, and do not reuse any of them.

Write down what was removed and changed, and when, so the next person who works on the site knows the tool is gone and why.

What the records hold

Registration and sign-up records are personal information that people gave for one purpose. Losing control of them is a different matter from a broken page.

The privacy rules for those records vary. A few provinces have passed their own laws for businesses, and which law governs a given set of records depends on where the business is and what it does with them.

Read this as background rather than legal advice; your lawyer can say what applies to the records your site keeps.

The counter-case

A site with no database, such as a set of plain HTML pages, gives this kind of tool nothing to manage. Its folder can still hold old backups and test pages, so check it anyway.

Developers sometimes need direct database access for a day of work. A temporary copy behind its own password, removed when the work ends, is a sound professional habit.

The risk comes from copies that outlive the job. A tool left at an obvious address for years is a door no one is watching.

Clearing out the web folder

  1. Ask for a list of everything in the website's folder.
  2. Mark every file and folder the live site does not use.
  3. Back up the leftovers somewhere off the server.
  4. Remove the database tool and every other leftover.
  5. Change the database password and update the site to match.
  6. Change the other passwords on the hosting account.
  7. Use the control panel's copy for future database work.

Step five matters even if nothing seems to have happened. The tool's settings may have exposed the old password, and a password someone else knows keeps working until it is changed.

An old site can also tell strangers too much through its error pages, as error messages that show strangers how the site is built explains.


Frequently asked questions

What is a database manager on a website?

A web-based tool that lets someone read, change, export or delete everything in the site's database from a browser. Developers use it for repairs and often leave copies behind.

How would anyone find it without a link?

Automated scanners request common folder names on every site they reach. A database tool usually sits in a folder named after itself, so it is among the first they try.

Is it safe if the login has a strong password?

Safer, not safe. Old versions have known flaws that can get around the login, and some copies log in automatically with a password saved in their settings.

Where should database work happen instead?

Through the copy in your hosting control panel. It sits behind the hosting account's login rather than on your website, and the host keeps it updated.

What else should be removed from the web folder?

Database backups, installer folders, test pages that print server settings, old copies of the site and zip files of it. None of them belongs where visitors can request it.

Which passwords need changing afterwards?

The database password first, since the tool's settings may have exposed it, then the hosting, FTP and website admin passwords. Use a different one for each.

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.

Unsure what sits in your website's folder?

Ask us for a check of your site's folders, and we will list anything that should not be there.

Start a Conversation