Spam and security basics
This page is for individuals who run a site alone and want the basics right without becoming security experts. Most attacks on small sites are automated: bots that try common passwords, fill in forms and register fake accounts. The defenses below stop most of them.
Contents
- Your administrator account
- What visitors may create
- Forms, comments and registration
- Updates
- Watching the site
- Hardening, briefly
- When something looks wrong
- Checklist
Your administrator account
- Change the default administrator password at once after installing (Change the admin password, Default administrator password).
- A long, unique password from a password manager.
- Two-step sign-in with an app (Two-factor sign-in).
- A separate editor account for daily writing, so the administrator account is used only for administration.
- HTTPS on every page (Domain names and HTTPS).
What visitors may create
Every form a visitor can submit is a way in for spam. Check Users > Roles > Anonymous: on the default site
package anonymous visitors may create Comment and Review objects in the Standard section
(sevenx-multi-site-installer.php). Remove what you do not use (Visitor permissions,
Comments on your blog).
Forms, comments and registration
| Layer | Ships as | What it stops |
|---|---|---|
| Form tokens | ezformtoken, in the default installation | Forged posts sent from other sites |
| CAPTCHA field | recaptcha or hcaptcha datatype on the class; keys from the service | Most automated form spam |
| Signed-in only | Roles | Anonymous bots |
| Approval workflow | Workflows | Anything appearing before you look |
| Activation by mail | VerifyUserType=email | Fake registrations with made-up addresses |
Use CAPTCHA on public forms, comments and registration (Spam protection for forms, hcaptcha, recaptcha). A CAPTCHA sends visitors' browsers to the service; mention it in your privacy text.
Updates
Most break-ins use holes that were already fixed. Apply security releases within days (Updates for one person), and keep PHP and, on your own server, the operating system current.
Watching the site
| Look at | How often | Where |
|---|---|---|
| New user accounts | Weekly | Users; remove ones you do not recognize |
| New comments and form submissions | Weekly | The posts; collected information |
| Errors | Monthly, or when something is odd | The log viewers (Logs for owners) |
| Who signed in | When in doubt | The audit trail (Security and audit) |
Hardening, briefly
The installation book has a chapter on security hardening (Security hardening, Chapter 13). For one person, the essentials are: the administration on its own address, file permissions as the book describes, settings files not readable from the web, and debug output off on the live site.
When something looks wrong
- Switch on maintenance mode if content was changed by someone else (Maintenance mode).
- Change your password and check the administrator accounts.
- Look at the audit trail and logs for what happened and when.
- Restore from a backup taken before the problem if needed (Backups for one person).
- If you found a security problem in Exponential itself, report it privately, not in a public issue (Private security reports).
Checklist
- To do: Default password changed; two-step sign-in on.
- To do: Anonymous role only creates what you want.
- To do: Form tokens on; CAPTCHA on public forms, comments and registration.
- To do: Security updates applied promptly.
- To do: Weekly look at new accounts and comments.
- To do: Debug output off on the live site.
Related pages
- Running it alone
- Security basics (customers)
- Security checklist for owners
- Security basics for businesses
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.