BOT PROTECTION KIT
==================
worker.js + lp.html — read this before doing anything


WHAT'S IN THIS ZIP
-------------------
worker.js  — Cloudflare Worker that filters bot traffic (4 layers)
lp.html    — Simple dating landing page (hold/slide to unlock)
README.txt — this file


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1 — HOST YOUR LANDING PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Open lp.html and change these 2 lines at the top of the script:

    var OFFER_URL    = 'https://your-affiliate-link.com';  ← your CPA offer link
    var PROFILE_NAME = 'Ashley';                           ← whatever name you want

That's all you need to change. Save the file.

Now upload lp.html to any web hosting. Free options:

  NETLIFY (easiest)
  → Go to netlify.com
  → Drag and drop lp.html onto the page
  → You get a live URL instantly (e.g. yoursite.netlify.app)
  → Free forever for static files

  GITHUB PAGES
  → Create a free GitHub account
  → New repo → upload lp.html → rename it index.html
  → Go to Settings → Pages → enable GitHub Pages
  → Free, custom domain support

  CLOUDFLARE PAGES
  → pages.cloudflare.com
  → Upload lp.html → instant deploy
  → Works perfectly alongside the Worker (same account)

  ANY CHEAP HOSTING
  → If you already have hosting anywhere — just upload lp.html via FTP
  → Rename it index.html so it loads at the root URL

Write down the URL of your hosted LP. You'll need it in Step 2.


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 2 — DEPLOY THE CLOUDFLARE WORKER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The Worker sits in front of your LP and blocks bots before they reach it.
Free up to 100,000 requests per day. No credit card needed.

1. Go to workers.cloudflare.com
   Create a free account if you don't have one.

2. Click "Create Worker"

3. Delete all the default code in the editor.
   Paste the entire contents of worker.js

4. At the top of the code, change these 2 lines:

    const YOUR_LP  = 'https://your-landing-page.com';  ← URL from Step 1
    const SAFE_URL = 'https://google.com';              ← where bots get sent
                                                          (google.com is fine)

5. Click "Save and Deploy"

6. You'll get a worker URL like:
   your-worker-name.your-account.workers.dev

   That's your protected LP link. Use THIS URL in your traffic source,
   not the direct lp.html URL. All traffic goes through the Worker first.


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OPTIONAL — USE YOUR OWN DOMAIN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

If you have a domain and it's on Cloudflare (free to add):

1. Go to your domain in Cloudflare dashboard
2. Workers & Pages → Add route
3. Set route to your domain (e.g. yourdomain.com/*)
4. Select your Worker
5. Your domain now runs through the bot filter automatically


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THE WORKER FILTERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

L1 — Known bots (Facebook crawler, Googlebot, Selenium, curl, etc.)
L2 — Suspicious User Agents (too short, no browser signature)
L3 — Datacenter IPs (AWS, Google Cloud, DigitalOcean, Hetzner, etc.)
L4 — Missing browser headers (no Accept-Language = not a real browser)

Anything that fails any layer → redirected to SAFE_URL
Anything that passes all 4 → reaches your LP


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
QUESTIONS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

mykolachystenko.com
