Saral Login Shield

Saral Login Shield icon
Free OpenCart extension · v1.0.0

Two-factor login, a hidden admin login page and attempt limits for OpenCart.

Protects your OpenCart admin three ways: a 6-digit code from your phone after the password, an admin login page at an address only you know, and a lockout for bots that keep guessing passwords. Admin and customer logins are logged, and a forgotten login address can be emailed to you.

  • Free, for OpenCart 4.0.2.0 and newer
  • Two-factor login without SMS or an outside service
  • No tracking, no outside connections
Get it free on the OpenCart Marketplace

Then in your admin: Extensions → Installer, upload the file, and install it under the “Other” extension type.

  • Version1.0.0
  • OpenCart4.0.2.0 or later
  • PHP8.0 or later
  • Tested up toOpenCart 4.1
The two-factor step at a hidden OpenCart admin login address
Why it matters

Why protect your OpenCart admin?

Your OpenCart admin holds your orders, customers and payment settings, and its login page is easy to find. Bots try common usernames and leaked passwords on it over and over, and on the customer login too.

It takes only one weak or reused password for a guess to work. Saral Login Shield hides the admin login page, locks out IP addresses that keep failing, and asks for a code from your phone, so a stolen password on its own is no longer enough to get in.

Features

What Saral Login Shield does

Two-factor login

After the password, admin users enter a 6-digit code from Google Authenticator, Microsoft Authenticator, Authy or 1Password. No phone number or outside service needed.

Backup codes

10 one-time codes for a lost phone, and “Don’t ask again on this device for 30 days” for your own computer.

Required for administrators

Make two-factor login compulsory for user groups that can change the store settings. They set it up right after their password.

Hidden admin login page

The admin only shows its login page at your own address, such as /admin/?login-k3x9qa. Everyone else gets a “Not Found” page or a redirect.

Limit login attempts

After 5 failed logins in 20 minutes, the IP address is locked out for 20 minutes. Covers the admin login, two-factor codes and the customer login.

Login activity

Every admin and customer login, failed login, wrong code and lockout, with filters and search. Unblock an IP address in one click.

New IP alerts and recovery

Administrators are emailed when they sign in from a new IP address. Forgot the login address? Get it by email at /?login-recovery.

Works behind Cloudflare

Reads the real visitor IP address behind Cloudflare, a proxy or a load balancer. IPv6 addresses are counted by their /64 network.

How It Works

Set it up in four steps

01
Install

In your OpenCart admin, go to Extensions, then Installer, and upload saral_login_shield.ocmod.zip. Then go to Extensions, choose the “Other” type, and install Saral Login Shield.

02
Hide the login page

Open Saral Login Shield, switch on “Hide the login page” and save. Bookmark the new admin login address shown at the top.

03
Turn on two-factor login

In the profile menu at the top right, choose Two-factor login. Scan the QR code with your authenticator app, enter the code and save your 10 backup codes.

04
Check the other settings

Login attempt limits are on already. If your store is behind Cloudflare or a proxy, choose it under Visitor IP address.

Pro add-on

Saral Login Shield Pro for OpenCart

A paid add-on is on the way. Everything in the free extension keeps working as it is, and Pro will add:

IP allowlist and blocklist

Addresses and ranges, IPv4 and IPv6, with an option to let administrators log in only from the allowlist.

Bans for repeat offenders

Longer bans for addresses locked out again and again, and an instant lockout for usernames only attackers use.

CAPTCHA

Cloudflare Turnstile, hCaptcha or Google reCAPTCHA on the admin login and the customer login, registration and forgotten password forms.

Two-factor login for everyone

Require it for any user group and offer it to customers, with codes by email for people without an authenticator app.

Password policy

Minimum lengths, no passwords known from data breaches, and new passwords after a breach or every few months.

Security alerts and reports

Lockouts, bans and administrator logins by email, Slack, Discord or a webhook, plus a weekly summary.

Pro isn’t on sale yet. Leave your email at the top of this page and we’ll tell you when it is.

Good to know

What it doesn’t do

Saral Login Shield looks after your admin login. It’s a strong layer, not a complete security setup:

  • It isn’t a firewall or a malware scanner.
  • Two-factor login is for admin users. Customers’ logins are limited and logged, but they don’t get two-factor login.
  • It needs OpenCart 4.0.2.0 or newer. OpenCart 3 and older aren’t supported.

Use it together with strong passwords, regular updates and backups.

Private by design

The extension makes no outside connections and has no tracking or ads. Two-factor codes are made in your store and on your phone. The login log (time, username, IP address and browser) stays in your own database, is deleted after 30 days by default, and its tables are removed when you uninstall the extension.

Made for

  • OpenCart store owners
  • Stores with several admin users
  • OpenCart developers
  • Agencies managing many stores

Get an email when Saral Login Shield is updated

What's new in each version, in one short email. You'll also get our occasional newsletter. Unsubscribe from either any time.

Want your OpenCart store properly secured?

We build and look after OpenCart stores, write custom extensions and fix stores that have been hacked. The same team that made Saral Login Shield can help.

FAQ

Questions about Saral Login Shield for OpenCart

Yes. The extension is free, with no ads in your admin, and everything on this page apart from the Pro section is in the free extension.

From the OpenCart Marketplace, using the button on this page. It’s free: download saral_login_shield.ocmod.zip and upload it under Extensions, then Installer.

OpenCart 4.0.2.0 and newer, including 4.0.2.x and 4.1.x, on PHP 8.0 or newer. OpenCart 3 isn’t supported.

Enter one of your backup codes instead of the 6-digit code. Each works once. Another administrator can also turn two-factor login off for you on the Two-factor users tab. If you are the only administrator, add define('SARALSHIELD_DISABLE_2FA', true); to admin/config.php, log in, set it up again and remove the line.

Go to yourstore.com/?login-recovery and enter an administrator’s email address, and the login address is emailed to it. If email isn’t set up, add define('SARALSHIELD_DISABLE_HIDE', true); to admin/config.php to show the normal login page again.

Wait for the lockout to end (20 minutes by default), or log in from another network such as your phone’s mobile data and unblock your IP address under Login activity. Lockouts are per IP address, so other people can still log in.

No. The extension makes no outside connections and has no tracking. Emails go through your store’s own mail settings.

Yes. Saral Login Shield started as a WordPress plugin and is free on WordPress.org. See the WordPress plugin.
Saral Login Shield for OpenCart, by Saral Techies
Questions or a bug to report? Contact us.
Get it free
WhatsApp us