Marech for Any HTML Site
Running a custom-built or static HTML site? Paste one script tag to monitor AI-scraper traffic — and because you control your own hosting, you can turn on real edge blocking too.
How Marech protects a custom HTML site
A custom or static HTML site is the most flexible case: you own the hosting, so you can run both modes — monitor everywhere with the snippet, and block scrapers at your own edge.
Monitoring — the snippet
One <script> tag in your <head>. Reports scraper traffic to your dashboard and overlays JS-running bots.
Blocking — the edge check
An nginx proxy, Cloudflare Worker, or Vercel middleware checks each request before your origin serves HTML, returning a 403 to scrapers.
Before you begin
Monitoring needs only the first two. Blocking adds the last two.
- A Marech account — start a free trial.
- Access to your site's HTML files or shared layout/template.
- For blocking: control of your hosting (a VPS, Cloudflare, or Vercel in front of your origin).
- For blocking: a Marech API key and a block policy.
Install the monitoring snippet
Paste one line of JavaScript into the <head> of your pages — or once into a shared layout to cover the whole site.
<script> tag is present inside <head>.Turn on real blocking (optional)
Because you control your own hosting, you can run the enforcement check at your edge. All three integrations call the same endpoint and fail open. Needs a Marech API key and a block policy.
Verify it's blocking. With the integration live, a fake scraper user-agent should get a 403 while a real browser loads the page:
curl -A "GPTBot/1.0" -I https://yoursite.com/
The exact source for each integration (nginx config, Cloudflare Worker, Vercel middleware) lives in the marech-BD integrations directory, with setup instructions for each.
Not a developer? Let AI add it for you
Copy a prompt below and paste it into ChatGPT, Claude, or any AI assistant. It will walk you through adding Marech to your exact setup.
I have a static HTML website and I want to add this script tag to every page: <script src="https://cdn.marech.tech/YOUR_SNIPPET_ID.js"></script> My main page is called index.html. Please show me exactly where to paste it in my HTML file, and show me what the <head> section should look like before and after.
I have a multi-page HTML site and I want to add this script to every page: <script src="https://cdn.marech.tech/YOUR_SNIPPET_ID.js"></script> Walk me through the most efficient way to do this. If I have a shared header file or template (like _header.html or layout.html), show me where to paste it there. If I don't have one, show me how to add it to each page quickly.
I use a static site generator (e.g. Jekyll / Hugo / Eleventy) and I want to inject this script into the <head> of every generated page: <script src="https://cdn.marech.tech/YOUR_SNIPPET_ID.js"></script> Show me exactly which layout or partial file to edit and where to paste it so it appears on all pages after I build the site.
I host a static HTML site on GitHub Pages / Netlify / Vercel and want to add this script tag to every page: <script src="https://cdn.marech.tech/YOUR_SNIPPET_ID.js"></script> Walk me through: (1) which file to edit, (2) where exactly to paste the snippet, (3) how to commit and redeploy so the change goes live.
Why it matters for HTML sites
Static and custom HTML sites are high-value AI targets — your content is right there in the markup.
Training data harvesting
AI companies scrape raw HTML pages to build training datasets. Your prose, your research, your creative work — fed into models without permission or compensation.
Prompt injection via scraped content
Attackers embed hidden instructions in page text (e.g. "Ignore previous instructions…") that get lifted by AI scrapers and injected into AI pipelines downstream. Marech stops the scraper before it reads anything.
Content duplication by AI agents
Autonomous AI agents crawl HTML sites to summarize, rewrite, and republish your content — stripping traffic and SEO value. Marech fingerprints and blocks known agent user-agents in real time.
Competitor intelligence bots
Businesses deploy AI crawlers to harvest pricing, copy, and product data from competitor HTML sites. Marech detects non-human request patterns and returns a 403 before any data is read.