TrafficDam Docs

Custom Code & Any Website

Protect any website, custom PHP/Node/Python application, Shopify store, Webflow, or static HTML landing page.

How to Integrate:

  1. Add and verify your domain under Dashboard > Domains.
  2. In Create Filter, select Custom Code.
  3. Configure your targeting rules (allowed countries, device types, ThreatGuard shield).
  4. Copy your unique shield script:
<!-- TrafficDam Shield -->
<script src="https://trafficdam.com/f/{YOUR_SITE_UUID}?format=js" async></script>

Recommendation: Place the script as high in your <head> element as possible, above your ad network tags. Invalid sessions are redirected away before ad impressions fire, protecting your publisher accounts.

Need Help Getting Started?

Our support team is ready to assist you with your setup.

Contact Support