Skip to content

PrestaShop ​

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 directory (themes/<your-theme>/templates/), open _partials/footer.tpl (or layouts/layout-both-columns.tpl on older PrestaShop versions — whichever includes the closing </body> for your theme).
  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. Clear the Smarty cache: Advanced Parameters → Performance → Clear cache (or delete var/cache/* on PrestaShop 1.7/8).
  2. Visit your storefront and check your dashboard for the first signal.

TIP

If you're not comfortable editing theme files directly, a "Custom code" / "Google Tag Manager" module from the PrestaShop Addons marketplace can inject the same snippet without touching template files.

Want real blocking, not just detection? ​

This page installs the JavaScript snippet (detection only). Since PrestaShop 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.