Protect OpenCart from SQL injection

CSL SQLi Guard checks catalog and admin requests for SQL injection before OpenCart's own code runs. It's free, it shows you what it caught, and you decide whether it blocks or only logs.

  • Free download
  • Catalog and admin
  • 403, 404 or log only

The screens you'll use

Route exceptions, detection rules, Log Explorer and analytics. Click a screen to open it full size.

  • Route exceptions

    Exclude exact routes you know are safe, for catalog, admin or both. That's how you quiet false alarms on a busy store.

  • Detection rules

    Every rule and its score on one screen, so you can see why a request got flagged.

  • Log Explorer

    Where you'll spend most of your time. Each entry shows the request, its score, the rules it matched and the payload.

  • Analytics dashboard

    Blocked requests over time, the average score, and the rules, routes and IPs that show up most.

What it checks and what it does

CSL SQLi Guard inspects each request before OpenCart's own code runs. It looks at URL and query parameters, POST form data, and parameter names as well as values, because real probes abuse both.

  • Scores requests against weighted rules. A single weak signal, like the word SELECT in a search, stays under the default threshold. Several together cross it.
  • Detects UNION SELECT, SELECT ... FROM reads, data-changing statements, boolean bypasses like OR 1=1, stacked queries, comment tokens, time-based blind SQLi functions and schema discovery.
  • When a request crosses the threshold, it blocks with HTTP 403, disguises the block as a 404, or only logs it. You pick the mode.
  • Logs the matched rules, score, method, URI, route, IP and proxy headers. It comes with Log Explorer, a rule-testing screen and optional email alerts, sent immediately or as a digest.

Watch the demo

A walkthrough of the protection settings and the admin screens where you review flagged requests.

How to protect OpenCart from SQL injection

No single tool does it. The plugin blocks obvious probes early. Your code still has to be free of the holes those probes look for.

  1. Install CSL SQLi Guard so catalog and admin requests get scored before OpenCart handles them.

  2. Keep OpenCart core, themes and extensions updated. Old and abandoned modules are where injection bugs tend to survive.

  3. Use prepared statements, parameterized queries and input validation in every custom extension and theme change.

  4. Read the logs and alerts regularly. Repeated probes, noisy routes and odd IP patterns show up there before they turn into an incident.

  5. Keep backups, limit admin access and treat the plugin as one layer among several.

Who it's for

You don't need to be a security specialist to use it.

  • Store owners who want catalog and admin covered by a plugin they can understand.

  • Agencies running several OpenCart stores that want one free plugin they can review, install and monitor everywhere.

  • Developers who want request logs, matched rules, scores and a safe way to test sample payloads.

When the plugin isn't enough

Some stores need more than a download. If your setup is complex or you're already seeing attacks, we can take it from there.

  • Store review and incident help

    If your store already shows signs of attack, we read the traffic, find where the pressure is and plan the response with you.

  • Compatibility for real stores

    Custom themes, third-party modules and unusual request flows sometimes need adjustments. We make them.

  • Hardening beyond the plugin

    Updates, backups, secure coding and prepared statements still decide how safe a store is. We help with the parts a plugin can't cover.

Contact support

Questions about CSL SQLi Guard

Is CSL SQLi Guard free for OpenCart?

Yes. It's free, and it covers both the catalog and the admin side of an OpenCart store.

How does CSL SQLi Guard detect suspicious requests?

It checks query parameters, POST form data, and parameter names and values. Each risky rule adds to a score. When the score reaches your threshold, the plugin treats the request as malicious. Depending on your settings, it blocks it with HTTP 403, disguises the block as a 404, or only logs it.

How do I protect OpenCart from SQL injection?

Use layers. Install CSL SQLi Guard to score requests, keep OpenCart and every extension updated, use prepared statements in custom code, watch the logs and alerts, and keep backups. The plugin blocks common probes, but your code and maintenance still matter.

Does this plugin replace secure coding and full site security?

No. It blocks many common SQL injection probes at the request layer. It doesn't replace prepared statements, parameterized queries, input validation, updates, backups or broader security work on the store.