Get 35% OFF with Cyber Monday coupon CYBERMON2026  |  Plus 3 months of free hosting →
OpenCart Module

Admin Bruteforce Protection for OpenCart

Bots try thousands of passwords on every OpenCart store, every day. Close the door before they get in: limits and growing bans, logins only from your countries, an admin login address only you know, a security check without third parties, and two-factor for your team.

Last Update: 3 Dec 2026
Version: 2.0
Compatibility: OpenCart 3.0.3.0 or newer and OpenCart 4.0.2.0 or newer (tested up to 3.0.5.1 and 4.1.0.4), PHP 7.2 or newer (OpenCart 4: PHP 8.0 or newer)

Why protect the login

Bots do not look for your store, they look for any login form. They try common usernames and leaked passwords day and night, on the admin login, the customer login and the password reset forms. Each attempt costs your server time, and one weak password is enough to lose the store and the data of your customers. Admin Bruteforce Protection counts every failed login on every entry point, bans the addresses that guess, and makes the admin login itself harder to find and harder to pass.

What it does

  • Failed login limits. After 5 failed logins in 15 minutes the address is banned, and every repeat bans it longer: 15 minutes, 1 hour, 1 day, 7 days. Real accounts are never locked by username alone, so an attacker cannot lock you out.
  • Trap usernames. Logins as admin, administrator, root, test or demo are banned at once when no such user exists in your store. Unknown usernames count double.
  • Every entry point. The admin login, the customer login, the checkout and affiliate logins of OpenCart 3, the password reset forms of administrators and customers, and the API login of OpenCart 3 and 4.0.
  • Allowed countries. Admin logins from other countries are refused before the login form is shown. Addresses in your allowlist always pass. Customers follow the countries only if you turn that on.
  • Secret admin login address. The usual admin address answers "not found". You log in at admin/?your-key, and bots stop at the door.
  • Security check without Google. A check that runs in the browser, without third-party services and cookies. Prefer reCAPTCHA, Cloudflare Turnstile or hCaptcha? Choose one and enter your keys.
  • Two-factor for the back office. An authenticator app or a code by email, backup codes and trusted devices for 30 days. You can require it for all administrators. When the two-factor of OpenCart 4 is on, the module leaves the codes to OpenCart, so nobody is asked for two codes.
  • Hidden usernames. The same error for a wrong username and a wrong password.
  • Alerts and a log. Email alerts when an administrator logs in from a new place, an address is banned, a new administrator appears or the email or password of an administrator changes. Every attempt in the activity log.

You cannot lock yourself out

  • Your own address goes to the allowlist when you save, and the module warns you when your country is not in the list.
  • Monitor mode: the module only writes to the log, nothing is blocked, until you are sure.
  • An unlock link by email for administrators who banned their own address.
  • An emergency switch: an empty file sgabp-disable.txt in the root folder of the store turns the protection off.

Light on your server, private by design

  • The module works only on the admin, the login and password reset forms and the API login. The pages of your store do not run a single extra database query.
  • A visit never waits for an outside service: the country database, the licence and updates are handled in the background, after the pages of the administrator and by the Cron Jobs of OpenCart 4.
  • Everything is stored on your own server. Passwords and codes are never stored or sent; secrets of two-factor are encrypted, email codes and backup codes are stored as hashes.

Screenshots

Free and Pro

Free Admin Bruteforce Protection
Admin Bruteforce Protection Pro
Failed login limits, growing bans, trap usernames YES
Every entry point, hidden usernames, limit of password resets YES
Distributed attacks on one username, bans of whole networks, under attack mode -
Allowed countries Up to 3
Country database Updated every 30 days
IP allowlist and blocklist Up to 5 each
Secret admin login address YES
Security check: built-in, reCAPTCHA, Turnstile, hCaptcha YES
Two-factor: app, email codes, backup codes, trusted devices YES
Two-factor required for administrators YES
Customer logins: limits and the security check YES
Session timeout for administrators YES
Alerts Email
Activity log 30 days

Pro is an add-on to the free module, with a 14-day free trial. Plans, prices and the trial:

FAQ

I lost the secret admin address. How do I get in?

The address is in the email the module sent to the administrators when you saved it. If that email is lost too, put an empty file named sgabp-disable.txt in the root folder of the store: all checks stop until you remove it. Log in at the usual address and choose a new key.

I banned my own address.

Open the admin login and use "Locked out of your own site?": an unlock link goes to the email of the administrator. Or wait until the ban ends, or use the emergency switch.

I use the two-factor of OpenCart 4. Do I need this one?

No. When it is on, the module does not ask its own code and shows the state of the two-factor of OpenCart on its Two-Factor screen. The limits, countries, the secret address and the security check still guard the login before it.

Will my customers be affected?

They get the same limits and the security check. Countries apply to customer logins only if you turn that on.

Which OpenCart versions are supported?

OpenCart 3.0.3.0 or newer and OpenCart 4.0.2.0 or newer. Each has its own file: download the one for your version.

Does it send data to other services?

No, unless you choose reCAPTCHA, Turnstile or hCaptcha for the security check, or Telegram, Slack or a webhook for the alerts (Pro). The country database is updated from siteguarding.com in the background.

What happens when I remove the module?

The data stays unless "Delete all data when the extension is removed" is on in Settings & Tools.

Requirements

OpenCart 3.0.3.0 or newer (tested up to 3.0.5.1) with PHP 7.2 or newer; OpenCart 4.0.2.0 or newer (tested up to 4.1.0.4) with PHP 8.0 or newer. MySQL or MariaDB.

Download

Free, no account needed. Keep the file name: OpenCart 4 takes the extension code from it.

Installation

OpenCart 3.0.x

1. In the administrator area, open Extensions > Installer and upload opencart3adminbruteforceprotection.ocmod.zip.

2. Open Extensions > Extensions, choose Modules, find Admin Bruteforce Protection and click Install.

3. Failed login limits start at once. Open Admin Bruteforce Protection in the menu and follow the checklist on the Dashboard: allowed countries, two-factor for administrators, the secret login address.

OpenCart 4.0.2 to 4.1

1. Open Extensions > Installer, upload siteguardingadminbruteforceprotection.ocmod.zip (keep the file name) and click Install.

2. Open Extensions > Extensions, choose Modules, find Admin Bruteforce Protection and click Install.

3. Failed login limits start at once. Open Admin Bruteforce Protection in the menu and follow the checklist on the Dashboard.

Using the older Admin Protection module of SiteGuarding? Settings & Tools offers to import its settings (allowed and blocked addresses, the key of the login link) and to remove it.

Pro: install the Pro add-on for your OpenCart version the same way, next to the free module, and enter your licence key on its Pro screen.

Updates

When a new version is out, the screens of the module show it with a download link and the steps:

OpenCart 3: upload the new file in Extensions > Installer. Settings and data are kept.

OpenCart 4: in Extensions > Extensions > Modules uninstall Admin Bruteforce Protection, in Extensions > Installer uninstall and delete it, then upload the new file, install it and install the module again. Settings and data are kept unless "Delete all data when the extension is removed" is on.

Changelog

2.0
First version for OpenCart 3.0.3 and newer and OpenCart 4.0.2 and newer, on one core with the WordPress and Joomla editions: failed login limits with growing bans on the admin login, customer logins, password resets and the API login, trap usernames, allowed countries, IP lists, a secret admin login address, a built-in security check or reCAPTCHA, Turnstile and hCaptcha, two-factor with an app, email codes, backup codes and trusted devices, hidden usernames, session timeout, email alerts, activity log and protection from locking yourself out. Imports the settings of the older Admin Protection module.

Live Chat Support
Our website uses cookies, which help us to improve our site and enables us to deliver the best possible service and customer experience. See our policy Accept