Skip to content

Add CrawlProof ad unit#134

Merged
ralyodio merged 5 commits into
masterfrom
crawlproof/install-ad-embed-4a5b5f93-mraj9v7s
Jul 7, 2026
Merged

Add CrawlProof ad unit#134
ralyodio merged 5 commits into
masterfrom
crawlproof/install-ad-embed-4a5b5f93-mraj9v7s

Conversation

@crawlproof

@crawlproof crawlproof Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This PR adds the CrawlProof ad unit so this site can show network ads and earn crypto for clicks.

  • Slot: 4a5b5f93-ebd9-4d02-b927-05544fdeb81e
  • Format: banner_300x250
  • Injected into src/app/layout.jsx before </body>.

The unit renders inside a sandboxed iframe and never blocks page load. Manage the slot at https://crawlproof.com/ads/slots

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

ralyodio and others added 4 commits July 7, 2026 11:00
Revert the all-pages ad injection in the root layout; render the banner
via a client-gated BlogAd component inside the blog layout so it only
shows on /blog/* and never to signed-in users.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Render the CrawlProof banner as a plain cross-origin <iframe> pointing at
the new /api/ads/frame endpoint rather than the data-cp-ad + ad.js path.
The ad now renders and follows through to the destination without ad.js,
and the click link lives inside CrawlProof's own document so the PWA's JS
(visibility handlers, service worker) can't interrupt the click-through.
Still gated to logged-out visitors on /blog/*.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep the stock CrawlProof snippet (data-cp-ad div + ad.js) rather than a
custom iframe; only retain the /blog/* scoping and logged-out gating.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep the standard data-cp-ad + ad.js snippet as the primary path; add a
no-JS <noscript> fallback that renders the plain /api/ads/frame iframe so
the ad still shows and is clickable when JavaScript is disabled (Tor
Safest mode, .onion). Exactly one path renders per visitor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ralyodio ralyodio merged commit c7b8646 into master Jul 7, 2026
8 checks passed
@ralyodio ralyodio deleted the crawlproof/install-ad-embed-4a5b5f93-mraj9v7s branch July 7, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant