Luviner
Shield Pricing Docs About Contact IT Log in Start free
Docs
Quick start How Shield works Requirements Install Everyday commands Observe, then enforce Updates Uninstall Dashboard and alerts Settings

Shield Documentation

Shield sits in front of your site, on your own server, and decides who gets in: customers and search engines go through, bots, scrapers, attacks and traffic waves are stopped. It installs in four guided steps and checks by itself that every site answers as before.

Quick start

Before you start. You need your own Linux server with Docker installed, and administrator access. To check Docker, type docker --version: if it answers with a version number you are fine. If this means nothing to you, forward this page to whoever runs your server, or ask us for an assisted install.

  1. Download the installer: curl -fsSLO https://luviner.com/downloads/shield-setup.py
  2. Let it look at the server, changing nothing: python3 shield-setup.py analyze
  3. Answer the questions: python3 shield-setup.py plan. In doubt, press Enter: the suggested answer is fine. Your account token is in the Shield panel on luviner.com.
  4. Install: copy and run the command printed at the end (it starts with sudo). Shield checks that every site answers as before; if anything differs, it rolls back by itself.

With Apache on Debian or Ubuntu it does everything by itself. With nginx or Traefik there are two manual edits, described in section 3.

After the install there is nothing to do

  • Straight away Shield stops traffic waves and attack attempts.
  • In the first 24-48 hours (longer on low-traffic sites) it learns what your site's normal traffic looks like. Meanwhile your customers browse and buy as usual.
  • It starts in observe mode: other bots are only noted, not blocked. You see them in your panel on luviner.com.
  • It adapts by itself to your traffic over time, and updates arrive at night with the same checks.
  • After about a week, if the noted visitors in the panel contain no real customers, you can switch on full protection: sudo shield mode enforce. That is the only optional step.

If you need it

  • Is it working? shield status should say "healthy".
  • A customer can't get in? sudo shield mode observe lets everyone through at once; then send us the file from shield support > shield-support.txt.
  • Want it gone? sudo shield uninstall removes Shield and restores the configuration saved at install. With nginx or Traefik, first remove the line or labels you added by hand.

1. How Shield works with your site

Shield sits in front of your site, on the same server. Your application is not modified and does not need to know Shield exists.

  • Traffic waves. Shield spots a wave within seconds. Unknown visitors may see a short automatic check page that opens the site by itself; most visitors go through without noticing, anyone who sees it waits a few seconds.
  • Attacks. Requests for secret files, known exploit paths and login floods are refused before they reach the application.
  • Bots. Scrapers posing as browsers, fake search engines and greedy crawlers are recognised and noted from day one, and kept out once you switch on full protection (section 5).
  • Never in the way of search engines. Verified search engines, link previews, robots.txt and sitemaps are never stopped.

Whatever runs behind the web server (PHP, Python, Java, Node…) does not matter.

2. Requirements

Receives the visitors todayInstall
Apache on Debian or UbuntuFully automatic: install, checks, rollback
nginxShield starts by itself; you add one line to each protected server block
Traefik (Docker)Shield starts by itself; you add the labels to the protected routers

Plus: Linux, Docker, Python 3.8 or newer, and an administrator (sudo). Shield keeps within 1 GB of memory.

3. Install

# 1. Download the installer (standard library only, nothing to pip install) curl -fsSLO https://luviner.com/downloads/shield-setup.py # 2. Look at the server — read-only, no sudo, changes nothing python3 shield-setup.py analyze # 3. Answer a few questions; it writes the install package and its README.txt python3 shield-setup.py plan # 4. Install: the exact command is printed by step 3 (Apache shown here) sudo ./shield-setup-*/install.sh

plan asks only what it cannot detect: which sites to protect, online payments (so their notifications always get through), other addresses called by external servers (couriers, ERP, marketplaces), addresses always let through, observe or enforce, your Luviner account token, and whether Shield may update itself every night (section 6).

What install.sh does (Apache)

  1. Checks the server is as analysed and Shield's image is available.
  2. Records how every site answers: status, redirect target and certificate of every domain.
  3. Backs up the Apache, nginx and certificate renewal settings.
  4. Installs nginx without starting it, writes and tests its configuration, starts Shield.
  5. Switches over: Apache keeps all its sites, redirects and certificates and moves to 127.0.0.1; nginx takes the public addresses. A few seconds without service.
  6. Checks every site answers exactly as before, and that your site still sees each visitor's real address. Any difference: automatic rollback.
  7. Tests the renewal of each certificate and makes nginx reload them after every renewal.
  8. Installs the shield command and keeps a copy of the package for a clean uninstall.

nginx already in front

Run sudo ./shield-setup-*/start-shield.sh, copy nginx/shield-http.conf to /etc/nginx/conf.d/shield.conf and nginx/shield-server.conf to /etc/nginx/snippets/, then add one line in each protected server block and reload nginx:

include snippets/shield-server.conf;

If Shield stops, nginx lets visitors in.

Traefik

Run sudo ./shield-setup-*/start-shield.sh (it joins Traefik's network), then add the labels from traefik-labels.txt to the protected sites' containers and recreate them.

With Traefik, if Shield stops the protected sites answer 500 until it restarts (it restarts by itself). With Traefik older than 3.1 the visitor pass is given only by the check page.

4. Everyday commands

After the install, one command does everything. Every change is checked the same way: Shield must answer, keep what it learnt and the site must answer as before, otherwise it goes back by itself.

CommandWhat it does
shield statusVersion, mode, health, waves, what was stopped since the start
sudo shield updateNewer version, same settings; back to the previous one by itself on any problem
sudo shield rollbackBack to the previous version
sudo shield mode enforceFull protection (or observe)
sudo shield set SHIELD_TRUSTED_IPS=203.0.113.0/24Change any setting (section 9); an empty value removes it
sudo shield autoupdate on|offNightly update with the same checks
sudo shield uninstallPuts the server back as it was before the install (--purge also deletes what Shield learnt)
shield supportA summary to send to support: no visitor address, no secret value

Settings live in /etc/shield-setup/shield.env, readable by root only. The same guide is in README.txt inside the install package, in English and Italian.

5. Observe, then enforce

Shield starts in observe mode: traffic waves and attacks are stopped, every other bot is only noted. After about a week, look at the dashboard or at shield status. When the noted visitors contain no customers, switch on full protection:

sudo shield mode enforce

6. Updates

  • Nightly, by itself (if you said yes at install, the default): between 2 and 5 a.m. Shield checks for a newer version and installs it with the checks above. It only ever moves forward, never to an older version.
  • By hand: sudo shield update, or a given version: sudo shield update --to 2.13.
  • The previous version stays on the server, stopped: sudo shield rollback returns to it in seconds. What Shield learnt is kept across versions.

7. Uninstall

sudo shield uninstall
  • Apache: the Apache, nginx and certificate settings go back exactly as they were, nginx and Shield are stopped, and Apache is checked back on its ports.
  • nginx: Shield's two files become empty and nginx is reloaded, so the sites keep working; the include lines can be removed when convenient.
  • Traefik: remove Shield's labels from your routers first; the command refuses while a router still uses Shield.

8. Dashboard and alerts on luviner.com

Shield can report to your Luviner account, so you see every server in one page and get an email when a traffic wave starts and ends.

  1. Sign in at luviner.com, open Shield and generate the connection token. One token serves all your servers.
  2. New install: paste it when shield-setup.py plan asks. Already installed: sudo shield set SHIELD_REPORT_TOKEN=…
What leaves your server: pages checked, refusals by reason, the wave state and its threshold, past waves (start, end, peak), and attack signatures: the family and path of attack attempts (such as /.env), with numbers and tokens masked. Every minute, and at once when a wave starts or ends. No visitor address, no visited page, no header. The connection is outbound only: no port is opened. If luviner.com cannot be reached, protection is not affected.

Community plan: connecting to your Luviner account is the condition of the free plan. On the paid plans the connection is optional and everything can stay on your server.

9. Settings

Change them with sudo shield set NAME=value.

SettingDefaultDescription
SHIELD_GATE_MODEinstall: observeobserve or enforce (use shield mode)
SHIELD_FLOOD_ACTIONchallengeDuring a wave: challenge unknown visitors, only observe, or off
SHIELD_TRUSTED_IPSthe server itselfAddresses or networks always let through, comma-separated
SHIELD_ALWAYS_ALLOW_PATHSrobots, sitemaps…Pages always served to everyone (payment notifications, webhooks)
SHIELD_PROBE_ALLOW—Platform paths the site uses legitimately (e.g. wordpress, graphql); set by shield-setup
SHIELD_DECLARED_BOT_ACTIONallowBots that say who they are (SEO tools, AI crawlers): allow or block
SHIELD_LOGIN_MAX_ATTEMPTSpresetLimit on login form submissions per visitor (configurable)
SHIELD_SITE_HOST—Your site's name, set by shield-setup
SHIELD_REPORT_TOKEN—Luviner account token (section 8); empty: nothing is sent
SHIELD_NODE_NAMEsite nameHow this server is called in the dashboard

10. API mode

Shield can also be asked directly by your application, without a web server in front: POST /check on port 9741 with the request's details returns allow or block. Use it for APIs or to add Shield's verdict to your own logic. It does not protect against traffic waves, because the requests have already reached your application.

curl -s -X POST http://127.0.0.1:9741/check -H 'Content-Type: application/json' -d '{ "session_id": "visitor-123", "client_ip": "203.0.113.9", "method": "GET", "path": "/products/shoes", "headers": { ...all the request headers... } }'
EndpointMethodDescription
/checkPOSTVerdict on one request: allow or block
/gate/statusGETWaves, refusals and mode (what shield status reads)
/healthGETHealth check
/statsGETOperational statistics
/metricsGETPrometheus metrics

11. Measured on real traffic

Real logs of an online shop, replayed with the October 2026 version of Shield in front: the morning a distributed scraper sent 18,560 requests in 5 minutes from 17,416 addresses and took the site down for over an hour.

Without ShieldWith Shield
Wave recognised—after 38 seconds
Requests reaching the site, first 5 minutespeak 122/s1.2/s on average
Connections heldby the site (exhausted)by nginx
False wave alarms in the previous week—0
Customer actions refused (cart, login)—0
Real browsers that saw the check page—207 of 683, once

Shield has protected that site in production since 26 October 2026 (observe mode), in full protection since 2 November. On 9 November 2026 a real wave arrived: 6,270 new addresses in about 20 seconds, up to about 1,100 requests a second. Shield served the check page from the second second, almost none of those addresses came back, the site answered normally throughout, and every customer who was buying at that moment went on buying.

12. Good to know

  • An attack that saturates the server's internet line needs a network in front (a CDN): no software on the server can stop it. Shield works alongside one.
  • During a wave, browsers without JavaScript get in after a short wait instead of the check.
  • The visitor pass is a technical security cookie (shield_pass): list it in your cookie policy.
  • nginx listens on the server's addresses found at install time: if they change, run plan again.
  • One Shield serves all the protected sites of a server.
Need help with the install? A remote assisted install is available on the Pro plan and included for the first server on Business. See the plans or contact us.
Luviner

Website protection on your own server. Designed in Italy.

Shield

How it works Pricing Install What it covers, and what not

Guides

Block AI crawlers HTTP flood protection GDPR bot protection For agencies Bot protection guide

Company

About Contact Blog
© 2026 Luviner by Filippo Groppi · Via Primo Savani 20, 43126 Parma (PR), Italia · P.IVA / VAT ID IT02880910340 Terms of Service Privacy Policy Cookie policy Shield and GDPR Security Cookie preferences