Skip to content

WordPress

Finding your Site ID

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

No theme editing required, survives theme updates.

  1. In your WordPress admin, go to Plugins → Add New and search for Insert Headers and Footers (by WPBeginner). Install and activate.
  2. Go to Settings → Insert Headers and Footers.
  3. Paste the snippet into the Scripts in Footer box:
html
<script
  src="https://botfighter.dev/botfighter.js"
  data-site="YOUR-SITE-ID"
  data-api="https://api.botfighter.dev"
  data-honeypot="true"
  defer>
</script>
  1. Click Save.
  2. Visit your site and check your dashboard — the first signal should appear within seconds.

Option B — Theme File Editor

  1. Go to Appearance → Theme File Editor.
  2. In the file list on the right, select footer.php.
  3. Find the closing </body> tag and paste the snippet immediately before it.
  4. Click Update File.
  5. Visit your site and verify in DevTools → Network → filter signal → expect {"ok":true}.

TIP

If your theme uses a child theme, edit the child theme's footer.php so updates don't overwrite your changes.

Want real blocking, not just detection?

This page installs the JavaScript snippet (detection only — non-JS scrapers never trigger it). Botfighter also has a dedicated WordPress plugin that returns a real 403 before content is served, activated once for your whole site.


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