Biply/Blog/Guides

Laravel script security checklist before you go live

Launching a script that handles money, identities or private messages? Work through this list before you open to the public. Most breaches come from skipped basics, not clever attacks.

1. HTTPS everywhere

Install a certificate, redirect HTTP to HTTPS and confirm cookies are marked secure. Payment gateways and browsers expect it.

2. Debug mode off

In the .env file, APP_DEBUG must be false and APP_ENV must be production. Debug pages leak paths, keys and queries.

3. Protect the .env file and storage

The web root must be the public folder. Confirm that https://yourdomain/.env returns an error, not a file. Keep storage and database files out of the web root.

4. Strong administrator accounts

Change the default administrator password at install, use a unique long password and switch on two-factor sign-in. Create separate accounts for each staff member, with the least permissions they need.

5. Two-factor for everyone who can move money

Require it for staff and offer it to customers. Scripts such as Vestly and White Label Bank include two-factor sign-in and lockout.

6. Keep secrets secret

Payment keys, SMTP passwords and API tokens belong in the settings or .env, never in code you share. Rotate any key that has been pasted into chat or email.

7. File permissions

Folders such as storage and bootstrap/cache must be writable by the web server, and nothing should be world-writable beyond that. Avoid 777.

8. Backups you have tested

Back up the database and uploaded files daily, store copies away from the server and practise a restore once. A backup you have never restored is a hope.

9. Updates

Apply script updates and PHP security updates promptly. Subscribe to the vendor's release notes.

10. Rate limits and login protection

Check that failed logins lock the account or slow down, and that sensitive routes are rate limited.

11. Logs and alerts

Keep the application's audit log, review administrator actions and set an alert for failed cron jobs and mail errors.

12. Test in sandbox first

Run payments, KYC and email in sandbox or test mode, then switch to live with a small real transaction and check the ledger.

Frequently asked questions

Is a Laravel script secure by default?

Laravel provides good foundations, but security depends on how a script is written and how you deploy it.

Should debug mode ever be on in production?

No.

How often should I back up?

Daily for most sites, more often for those handling money.

Who can review my installation?

A developer, or Biply Agency, can review and harden an installation.

Want it built your way?Customisation, installation and professional support from the team behind the scripts.
Talk to us

Scripts mentioned in this guide

More guides