Integrations

Add Cloak4U integrations in minutes

Connecting Cloak4U to your landing page takes one small snippet. You can integrate with PHP, WordPress, or JavaScript — each method collects the same minimal signals, asks the service for a block, challenge, or allow decision, and fails open to your normal page if anything goes wrong. Pick the method that matches your stack and follow its guide.

Choose a method

Three ways to integrate

All three do the same job — collect minimal signals, request a decision, and act on it — but they fit different stacks.

PHP

Server-side evaluation before your page renders. Paste a snippet at the top of your entry file, block only on a ‘block’ decision, and fail open otherwise. Best for custom PHP sites and landing pages. PHP guide →

WordPress

Install a small plugin or add code to your theme, then keep the page out of your caching plugin so decisions stay live. Best for WordPress sites and marketers who prefer no code. WordPress guide →

JavaScript

A single async script tag before the closing head or body tag. No server changes, works on most hosts and site builders. Best for static sites and quick setups. JavaScript guide →

How snippets behave

What every Cloak4U snippet does

No matter which method you pick, the behavior is consistent and predictable.

Goes on your page

The snippet lives on the same approved landing page every visitor reaches — never a separate decoy. There is one destination for all valid traffic.

Collects minimal signals

It sends only the request signals needed to score traffic quality: IP, user agent, referrer, path, language, and coarse geo/device. No cookies, sessions, passwords, or uploaded files.

Fails open

If the service times out or errors, the snippet lets the visitor through to your normal page. Blocking happens only on an explicit block decision.

Integrations exist to filter invalid traffic, not to disguise your page. Cloak4U resolves every valid visitor — including any reviewer sent to check your ad’s destination — to the same approved page. It never serves different content to different audiences.

Compare

PHP vs WordPress vs JavaScript

A side-by-side look to help you choose the right method for your site.

AspectPHPWordPressJavaScript
Setup difficultyModerate (edit entry file)Easy (plugin or theme)Easiest (one script tag)
Where it runsServer, before renderServer, via WordPressBrowser, on load
Best forCustom PHP landing pagesWordPress sitesStatic sites & site builders
Caching notesBypass full-page cache for the entry fileExclude the page from your cache pluginWorks with CDNs; script itself is not cached long
Server changesYesMinimalNone
Fails openYesYesYes

Still unsure? Start with the JavaScript method — it is the fastest to try and needs no server changes. You can switch methods later without losing your campaign settings.

Frequently asked questions

How does a Cloak4U integration work?
You add a small snippet to your landing page. On each visit the snippet collects minimal signals — IP, user agent, referrer, path, language, and coarse geo/device — and asks the Cloak4U service for a decision. Valid visitors continue to your normal page; only visits classified as invalid are blocked or challenged.
Which integration method should I choose?
Use the JavaScript snippet for the fastest, no-server setup. Use the WordPress method if your site runs on WordPress. Use the PHP method when you want server-side evaluation before the page renders. All three send visitors to the same approved destination.
What happens if the Cloak4U service is unreachable?
Every integration is designed to fail open. If the service times out or returns an error, the snippet lets the visitor through to your normal page. Detection should never take your site down.
Do the snippets collect cookies or personal data?
No. The snippets collect only the minimal request signals needed to score traffic quality. They do not read or store cookies, sessions, passwords, or uploaded files.
Will an integration affect my SEO or ad review?
No. Cloak4U serves the same approved destination to all valid visitors, including legitimate crawlers you allowlist. It does not show reviewers a different page than users, so it does not interfere with indexing or ad review.

Integrate Cloak4U today

Pick PHP, WordPress, or JavaScript, add one snippet, and start filtering invalid traffic with transparent, auditable decisions.