Skip to content

OpenCart ​

Finding your Site ID

Log in at dash.botfighter.dev → your Site ID is shown at the top of the dashboard.

Add the snippet to your theme ​

One edit to your theme's footer template covers every page of your store.

  1. In your theme (catalog/view/theme/<your-theme>/template/common/), open footer.twig (OpenCart 3.x/4.x) — or footer.tpl on OpenCart 2.x.
  2. Paste the snippet immediately before </body>:
html
<script
  src="https://botfighter.dev/botfighter.js"
  data-site="YOUR-SITE-ID"
  data-api="https://api.botfighter.dev"
  data-honeypot="true"
  defer>
</script>
</body>
  1. If you have a cache extension enabled, clear it from System → Maintenance → Cache.
  2. Visit your storefront and check your dashboard for the first signal.

Want real blocking, not just detection? ​

This page installs the JavaScript snippet (detection only). Since OpenCart gives you full server access, the PHP integration works here too — a real 403 before content is served, one edit to your bootstrap.


Need help? Check the dashboard for your live signal feed.