Backend & Systems

Website and App Security: 10 Basics You Must Check

A practical checklist of ten security measures every website or app needs, explained for business owners as well as developers, with the questions to ask your team.

ZeQode article cover: Website and App Security: 10 Basics You Must Check

Most break-ins on small websites and apps don't happen because someone targeted you by name. They happen because automated bots crawl thousands of sites every day looking for a known weakness: an outdated plugin, a weak admin password, or a URL that reveals another customer's data when you change a number in it. The good news is that ten basics prevent most of these problems, and you don't need to be a developer to ask about them.

A checklist of ten website and app security basics
The ten basics in one image to review with your team

1. HTTPS everywhere

Every page and every request between the app and the server must be encrypted. This stops anyone on the same café or airport Wi-Fi from reading the data passing back and forth, such as passwords and customer details. Certificates are free with most hosting now, so there is no excuse.

2. Passwords stored properly

User passwords must never be stored as plain text, or even "encrypted" in a way that can be reversed. They should be stored with hashing, using an algorithm built for passwords (such as bcrypt or Argon2), so that even if the database leaks, nobody can easily recover the original passwords. A quick test: if you click "forgot password" and the site emails you your old password, there is a problem.

3. Clear permissions for every user

Customers see only their own orders, staff see only what their job needs, and admins are few. The most common flaw we find in apps: someone changes a number in the URL, from /orders/1045 to /orders/1046, and sees another customer's order with their name, address and phone number. The API must check on every request that the data belongs to whoever is asking. See what is an API.

4. Validate every user input

Anything coming from outside (a form, a URL or an uploaded file) must be checked before it is used: type, length and format. This prevents attacks such as injecting commands into the database (SQL injection), or uploading a malicious file instead of an image.

5. Don't store what you don't need

The best protection for any data is not collecting it in the first place. Do you need a date of birth, or is age enough? A photo of an ID card, or just the number? Card details in particular should never be stored on your side; leave them to the payment gateway, as explained in payment gateways in Egypt.

6. Regular updates

Outdated libraries and plugins are among the most common ways in, especially on WordPress sites. When a flaw is announced in a popular plugin, bots start searching every site for it within days. Regular updates are one of the main reasons for monthly maintenance.

7. Backups that get tested

Backups must be automatic, stored separately from the main server, and tested from time to time to confirm they actually restore. A backup you've never tried to restore may turn out incomplete or corrupt on the worst possible day.

8. Secrets outside the code

API keys, database passwords and payment gateway keys must not be written into the code or pushed to GitHub. They go in environment variables or a secrets vault, and each person on the team gets only what they need. If a key leaks, it is changed immediately.

9. Protection against guessing

Limit failed login attempts, add a delay after several tries, and use two-step verification for important accounts such as admin, the control panel, hosting and the domain registrar.

10. Monitoring and alerts

You need to know if something odd happens: lots of failed logins, a sudden rise in errors, or the site going down. The sooner you know, the less damage. It also matters to keep logs that show who did what and when, so you can trace anything that happens.

Questions to ask your team or the company building it

  • How are passwords stored?
  • If someone changes a number in the URL, will they see someone else's data?
  • When were libraries and plugins last updated?
  • When did we last try restoring a backup?
  • Who has admin access, and what happens to their accounts when they leave?
  • If the site goes down at night, who finds out and how?

If you're unsure of the answers, a security review finds the problems before someone else does. We review code and security in our performance and code audit service, and build security in from day one in backend and API development.

Frequently asked questions

My site is small. Would anyone bother hacking it?

Bots don't distinguish between small and large sites. They look for any known weakness and use compromised sites to send spam or spread malicious links, which can lead Google to warn visitors away from your site.

Does HTTPS alone make a site secure?

No. HTTPS only protects data in transit. Permissions, updates and password storage are separate matters entirely.

What should I do first if my site is hacked?

Change every password and key, restore the latest clean backup, update everything, then find the weakness they came in through so it doesn't happen again.

Share this article

More articles you may like

All articles