Luviner
Shield Prezzi Documentazione Chi siamo Contatti EN Accedi Inizia gratis
Documentazione
Avvio rapido How Shield works Requirements Install Everyday commands Observe, then enforce Updates Uninstall Dashboard and alerts Settings

Documentazione di Shield

Shield sta davanti al tuo sito, sul tuo server, e decide chi entra: clienti e motori di ricerca passano, bot, scraper, attacchi e ondate di traffico no. Si installa in quattro passi guidati e controlla da solo che ogni sito risponda come prima. L'avvio rapido è in italiano; la guida tecnica completa, più sotto, è in inglese.

Avvio rapido

Prima di iniziare. Ti serve un server Linux tuo, con Docker installato, e l'accesso da amministratore. Per controllare Docker scrivi docker --version: se risponde con un numero di versione sei a posto. Se non sai di cosa si parla, gira questa pagina a chi gestisce il tuo server, oppure chiedici l'installazione assistita.

  1. Scarica l'installer: curl -fsSLO https://luviner.com/downloads/shield-setup.py
  2. Fai controllare il server, senza cambiare nulla: python3 shield-setup.py analyze
  3. Rispondi alle domande: python3 shield-setup.py plan. Le domande sono in inglese. Se hai un dubbio premi Invio: la risposta proposta va bene. Il token dell'account lo trovi nel pannello Shield su luviner.com.
  4. Installa: copia ed esegui il comando che compare alla fine (inizia con sudo). Shield controlla che ogni sito risponda come prima. Se qualcosa è diverso, torna indietro da solo.

Con Apache su Debian o Ubuntu fa tutto da solo. Con nginx o Traefik servono due modifiche a mano, descritte nella sezione 3.

Dopo l'installazione non devi fare niente

  • Da subito Shield ferma le ondate di traffico e i tentativi di attacco.
  • Nelle prime 24-48 ore, di più se il sito ha poche visite, impara com'è il traffico normale del tuo sito. Nel frattempo i clienti navigano e comprano come sempre.
  • Parte in osservazione: gli altri bot vengono solo annotati, non bloccati. Li vedi nel pannello su luviner.com.
  • Si adatta da solo al tuo traffico nel tempo, e gli aggiornamenti arrivano di notte con gli stessi controlli.
  • Dopo circa una settimana, se nel pannello tra gli annotati non ci sono clienti veri, puoi attivare la protezione piena: sudo shield mode enforce. È l'unico passo facoltativo.

Se serve

  • Funziona? shield status deve dire "healthy".
  • Un cliente non riesce a entrare? sudo shield mode observe fa passare tutti subito. Poi mandaci il file creato da shield support > shield-support.txt.
  • Vuoi toglierlo? sudo shield uninstall toglie Shield e ripristina la configurazione salvata all'installazione. Con nginx o Traefik togli prima la riga o le etichette aggiunte a mano.

La guida completa, più tecnica, segue qui sotto in inglese.

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

Protezione per siti web, sul tuo server. Progettato in Italia.

Shield

Come funziona Prezzi Installazione Cosa protegge e cosa no

Guide

Bloccare i crawler AI Protezione HTTP flood Protezione bot e GDPR Per agenzie Guida anti-bot

Azienda

Chi siamo Contatti Blog
© 2026 Luviner di Filippo Groppi · Via Primo Savani 20, 43126 Parma (PR), Italia · P.IVA / VAT ID IT02880910340 Termini di Servizio Informativa sulla Privacy Cookie policy Shield e GDPR Sicurezza Preferenze cookie