Websites run JavaScript. Most of it is the site's own, which it needs to work. Much of the rest is loaded from other sites: ad networks, trackers and widgets. Korthveil can treat the two differently:
- Scripts from other sites are blocked in the browser by CipherGate, except the sign-in, payment and captcha scripts and the public code libraries most sites need, and anything you allow.
- A site's own scripts run, but only after the firewall has checked them. TLS inspection decrypts the page, and Gateway anti-virus (ClamAV) scans every script. A script that contains malware is replaced by a block page and never reaches the browser.
This guide sets it up for one computer first, proves it works, and shows how to widen it. The pictures come from a home firewall on 2026-11-13, set up for one Linux PC (192.168.1.11) with Chrome and Firefox. Its network addresses are shown as examples.
What you need: the CipherGate, TLS inspection and Gateway anti-virus add-ins, and a computer where CipherGate is installed (see the CipherGate guide).
Step 1: Gateway anti-virus
Open Security › Malware protection › Gateway anti-virus, keep the defaults and press Save to pending changes, then commit. ClamAV downloads its signatures (about 3.6 million) in a few minutes. Wait until ClamAV shows its version and Signatures a number before you go on: with If ClamAV cannot answer: Block, inspected downloads are blocked until then.

ClamAV starts by itself once its first signatures are there (from 1.3.3; on 1.3.2 press Restart on the page if it still says not answering).
Step 2: TLS inspection, for one computer first
Open Security › TLS inspection.
- Read the Privacy and legal notice and tick the confirmation.
- Under Zones whose outbound HTTPS is inspected, tick the zone of the computer, for example LAN.
- Tick Also proxy plain HTTP, Block QUIC and Scan downloads with Gateway anti-virus. Keep If the scanner is unavailable: Block downloads.
- Keep When a client refuses the certificate on Pass that site for that device (the default from 1.3.3). A program that keeps its own certificate list, such as a trading app, a VPN client or a browser's updater, then keeps working: only that device reaches that site uninspected, for 7 days. Learn an exemption for everyone is weaker: any program, malware included, could switch inspection off for a site for every device.

To start with one computer: put every other address under Clients never inspected. For one PC at 192.168.1.11 that is every IPv4 range except 192.168.1.11, plus ::/0 for IPv6 when the PC has no global IPv6 address. Later, remove the lines to widen inspection.
Exempt sites are never decrypted. Keep Use the built-in list: from 1.3.3 it holds banks, card issuers, brokerages and payment accounts (so a card payment page is never decrypted), operating-system updates, the Claude apps, Steam and pinned applications. Add your own, one per line. On the PC in the pictures (before 1.3.3):
anthropic.com
*.anthropic.com
claude.ai
*.claude.ai
claude.com
*.claude.com
claudeusercontent.com
*.claudeusercontent.com
github.com
*.github.com
*.githubusercontent.com
*.steampowered.com
*.steamcommunity.com
discord.com
*.discord.com
*.discordapp.com
Check that every name stands on its own line: two names run together on one line exempt neither of them. The Claude browser extension needs claudeusercontent.com: decrypted, it shows "Can't reach Claude".

Press Save to pending changes and commit.
Step 3: TVs and other devices that can't take a certificate
TVs (Samsung, Sony and others), consoles, speakers, cameras, smart-home devices and printers can't be given the inspection certificate. Korthveil leaves them alone in two ways, under Which devices are decrypted:
- Devices that Network › Devices recognises as one of those kinds are never decrypted.
- With Decrypt: Every device, any other device that refuses the certificate passes uninspected for 6 hours. Only devices that trust the certificate is stricter: a device is decrypted only after it has shown that it trusts it.
Devices that aren't decrypted keep DNS filtering, the web filter by name, intrusion prevention and fingerprint blocking. The list under the setting shows each decrypted device and whether it trusts the certificate:

Step 4: Trust the certificate on the computer
- On Security › Privacy › CipherGate › Browsers › Deployment, tick Offer the TLS inspection certificate on the portal page and commit.
- On the computer, open the CipherGate portal page (for example
https://base.korthveil.com:8447/ciphergate). It shows Also trust TLS inspection on this computer, ticked. Download the installer and run it (Linux:sudo sh ciphergate-install.sh). It adds the certificate to the system, to Chrome's policy, and to Chrome's and Firefox's own certificate stores. - Restart every browser, so it reads the certificate.
From 1.3.3 the installer also writes Firefox's certificate policy wherever Firefox reads one (Firefox ESR on Debian included), so every Firefox profile trusts the certificate after a restart. Nothing is typed in a terminal apart from the installer itself. On a computer set up with 1.3.2, download the installer from the portal page again after the update and run it once.
Step 5: Scripts from other sites: Learn, allow, then Block
On Security › Privacy › CipherGate › Browsers › Scripts from other sites:
- Choose Learn: count scripts from other sites, block nothing and commit. Use the browsers as usual for a while.
- Scripts seen from other sites lists each site and where its scripts came from. A site that loads its own code from a sister domain needs it: claude.ai loads its program from assets-proxy.anthropic.com. Press Allow on this site for what a site needs. Allow everywhere is for widgets you want on every site.
- Choose Block scripts from other sites and commit.
Start with Learn: the CipherGate wizard does so on a first setup, and the page warns when Block is chosen before anything was learned. A site's own sister domains count as its own (from 1.3.3, on by default): claude.ai's program from anthropic.com, YouTube's from ytimg.com and googlevideo.com, CNN's from turner.com, and other large sites. Before that, turned straight to Block, the picture below is what happened: CipherGate blocked claude.ai's own program 1,915 times, and the page said "Can't reach Claude". After Allow on this site for its two Anthropic addresses, claude.ai works with Block on.


Browsers pick up a change within 15 minutes, or at once from CipherGate's Settings › Check now in the browser.
Step 6: Prove it works
A site's own scripts: a test page with two of its own scripts, a clean one and one holding the EICAR test file (the standard, harmless file every anti-virus detects). The clean script ran. The EICAR script was replaced by the firewall's block page (HTTP 403) and never reached the browser:

On the firewall, Gateway anti-virus › Recent detections lists each block, with the computer, the address and the signature, and Blocked counts them. TLS inspection shows how many connections were decrypted, exempt and blocked for malware.

To make the test page on a site of your own that is inspected: put own.js and index.html from build/docs/script-test/ in a folder, create eicar.js with printf '%s' 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > eicar.js, open the page in the browser, and remove the folder after the test.
Scripts from other sites: Scripts seen from other sites on the CipherGate page counts, for each site, the scripts it loaded from other sites and how many were Blocked. Browsers report every 15 minutes. After opening cnn.com in Chrome, CipherGate reported the scripts the page tried to load from turner.com and cnn.io, all blocked, while CNN's own scripts ran and the page worked. claude.ai's two allowed Anthropic sources keep running:

Good to know
- Programs on the computer that keep their own certificate list, such as trading or chat apps, games and sync clients, refuse inspected sites. With the default they keep working, and Passed for one device lists each site and device with Keep (an exemption for everyone) and Inspect again.
- Learned exemptions (only from Learn an exemption) are listed under Exempt sites. Press Keep for a program that needs one (a trading app, a sync client), Keep all as exemptions, or Inspect all again.
- A failover pair uses one inspection certificate (from 1.3.3): the standby takes the active firewall's over the pair's own connection, so computers stay inspected while the partner carries the traffic.
- Claude and Steam are in the built-in exemptions from 1.3.3, next to banks, operating-system updates and pinned applications.
- To stop: add the computer back under Clients never inspected, or switch TLS inspection off. CipherGate's script blocking works without TLS inspection.