Appearance
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.
- In your theme (
catalog/view/theme/<your-theme>/template/common/), openfooter.twig(OpenCart 3.x/4.x) — orfooter.tplon OpenCart 2.x. - 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>- If you have a cache extension enabled, clear it from System → Maintenance → Cache.
- 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.