A PHP script that runs your whole business is also a target. Most attacks on small websites are automated and exploit known weaknesses: outdated software, weak passwords, and open upload forms. These ten checks reduce the risk substantially.
Before you buy
- Check update history. A changelog with regular fixes shows a vendor who maintains the product. Years of silence are a warning.
- Look for secure coding practices. If you or a developer can read the source, look for prepared SQL statements and escaped output.
- Search for known vulnerabilities reported for the product name.
During installation
- Use a current PHP version. End-of-life PHP versions no longer receive security patches.
- Create a dedicated database user with access only to the script's database, and use a long random password.
- Delete installers and sample files as soon as setup is finished.
- Move the admin panel behind HTTPS. Use a free certificate and force HTTPS for the admin and login pages.
After launch
- Restrict file uploads. Allow only needed image types and never allow executable files in upload folders.
- Back up daily. Keep copies of the database and uploaded files off the server and test restoring them.
- Apply updates quickly. Subscribe to the vendor's announcements and update when security fixes are released.
Bonus habits
- Use unique, strong admin passwords and rename the default admin username.
- Limit login attempts and consider two-factor authentication where available.
- Monitor your site for unexpected file changes.
Security is not a one-time task. Treat it as part of running the business, in the same way as accounting or customer support.