Skip to content

Install Botfighter

Paste one script tag on your site. That's it.

html
<script
  src="https://botfighter.dev/botfighter.js"
  data-site="YOUR-SITE-ID"
  data-api="https://api.botfighter.dev"
  data-honeypot="true"
  defer>
</script>

Finding your Site ID

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

Snippet attributes

AttributeRequiredDefaultDescription
data-siteYesYour unique site ID from the dashboard
data-apiNohttps://api.botfighter.devAPI endpoint (change only if self-hosting)
data-honeypotNofalseRender an invisible honeypot link to catch naive bots
data-sampleNo1.0Sampling rate (0.0–1.0). Set to 0.1 to report 10% of visits
data-privacyNofalseStrip IP and canvas fingerprint before sending — GDPR-friendly mode

Where to put it

Place the snippet before </body> on every page. The defer attribute means it loads after your content — no impact on page rendering.

html
  <!-- your page content -->

  <script
    src="https://botfighter.dev/botfighter.js"
    data-site="YOUR-SITE-ID"
    data-api="https://api.botfighter.dev"
    data-honeypot="true"
    defer>
  </script>
</body>

What the snippet does NOT do

  • Does not set cookies
  • Does not block or redirect any visitor
  • Does not slow down page load (defer + async signal POST)
  • Does not send any data to third parties

Verify it's working

  1. Open your site in a browser
  2. Open DevTools → Network tab → filter by signal
  3. You should see a POST to https://api.botfighter.dev/signal returning {"ok":true}
  4. Within a few seconds, the visit appears in your dashboard

Platform guides

Pick your platform for step-by-step instructions:


Need help? Open an issue on GitHub or check the dashboard for your live signal feed.

Open source under MIT License.