Free · One script tag

Oculon Embed

Give your visitors a link checker, or warn them before they follow a dangerous link off your site. One script tag, no dependencies, no cookies, and it never blocks a link when Oculon cannot be reached.

Live preview · box

Paste any link or domain. The check runs on Oculon's link checker: Safe Browsing, URLhaus, urlscan.io, domain age and look-alike signs.

Add it to your site

A "Check a link" box

Paste this where the box should appear. Or put <div id="oculon-check"></div> anywhere on the page and the script fills it.

<script src="https://oculon.live/embed.js" data-oculon-mode="box" async></script>

Warn before dangerous outbound links

Add this once, anywhere on the page. Links to your own site and its subdomains are never checked.

<script src="https://oculon.live/embed.js" data-oculon-mode="links" async></script>

Only the links in a comment section, with a light box

<script src="https://oculon.live/embed.js" data-oculon-mode="links" data-oculon-scope="#comments" data-oculon-warn="malicious" async></script>
<script src="https://oculon.live/embed.js" data-oculon-mode="box" data-oculon-theme="light" async></script>

Options

AttributeDefaultWhat it does
data-oculon-modeboxbox shows a link checker; links checks outbound links when they are clicked.
data-oculon-targetoculon-checkId of the element the box goes into. Without one, the box appears where the script tag is.
data-oculon-warnsuspiciousWhich results show a warning in links mode: suspicious warns on suspicious and malicious, malicious only on malicious.
data-oculon-scopewhole pageA CSS selector. Only links inside it are checked, for example #comments.
data-oculon-allownoneComma-separated hosts that are never checked, such as your partners. Your own site is always skipped.
data-oculon-max20Most checks per page view (1 to 50). After that, links go through unchecked.
data-oculon-themedarkdark or light.
data-oculon-keynoneAn Oculon API key, sent as Authorization: Bearer. Not needed today; reserved for higher limits later.
data-oculon-apiscript originThe Oculon server to ask. Leave it out for oculon.live; set it when you run your own Oculon.

How it behaves

Free. The script is about 17 KB unminified and loads with async, so it never delays your page.