Shield (web application firewall)

Route your domain through Webforta Shield to filter traffic at the edge before it reaches your server.

Webforta Shield is a reverse-proxy web application firewall (WAF). You point your domain at Webforta with a DNS record. Shield then checks each request against your rules at the edge (Webforta's network, in front of your server) and forwards clean traffic to your origin server (the server that hosts your site). Nothing passes through Webforta until you change DNS, and Shield starts in monitor mode so you can see what it would block before it blocks anything.

You don't need any third-party account; Webforta runs Shield on its own edge network: Webforta adds your hostname there and issues its certificate. Your hosting does not change.

Shield is included in Pro and Business. The free trial and the Free plan do not include it.

Connecting a website

  • Open a verified website and go to its Shield tab, then click Connect to Shield. Webforta then requests an SSL/TLS certificate for your hostname.
  • Set your origin: enter your server's IP address (in cPanel, the Shared IP Address on the home screen). Webforta routes to that IP and asks for your domain name, so your server serves the site exactly as before - no extra DNS records or subdomains needed. Click Save and test origin to confirm Webforta can reach it.
  • Add the DNS records Shield shows you - a CNAME that routes traffic, plus one _acme-challenge CNAME that lets the certificate be issued and renewed automatically. Each value has a copy button. Delete any old _acme-challenge TXT records first: they block the CNAME.
  • Wait: the page checks your records by itself every few seconds (you can also click Check now), tells you exactly what is missing or wrong, and moves on as soon as each step completes. You get an email when the site is live.
  • Shield starts in monitor mode. Watch the Overview and Activity tabs for a day or two, then click Start blocking threats. Fine-tune protections (attack filter, login brute-force protection, WordPress protection, under attack mode) on the Protection tab. If Shield flags something legitimate, click Not a threat - allow here on the Activity tab: that one rule stops applying to that page and everything else stays protected. Every Monday you get a weekly summary by email.

Rules

  • Allow or block individual IPs and CIDR ranges (IPv4 and IPv6) or whole countries, with an always-allow list that bypasses other rules.
  • Rate-limit abusive clients by requests per window, per IP or per IP-and-path.
  • Block, challenge or allow specific paths; challenge known abusive crawlers.
  • Edge hardening: force HTTPS, add HSTS and missing security headers, set clickjacking protection.
  • Password-protect sensitive paths with HTTP Basic auth, and cache static assets at the edge.

Modes

  • Monitor (default): logs what would be blocked without blocking anything - watch the event log here first.
  • Enforce: applies your rules to live traffic.
  • Off: forwards everything without filtering.

Under attack mode and browser checks

  • Under attack mode makes every visitor opening a page pass a short browser check (about a second, no CAPTCHA) before reaching your site. It stops floods of automated requests; real browsers get through and are not asked again for a while.
  • Page resources (CSS, JavaScript, images, fonts), robots.txt, sitemaps and /.well-known/ are not checked, so pages load normally. A visitor fetching an unusually large number of them a minute without having passed the check is checked too.
  • These checks are precautions, not threats: they are counted under Browser checks on the Overview, with how many were passed, and do not appear in Threats or the Activity log. The same applies to the login-page check and to the check for IPs known from other sites. Requests that match an attack rule are still counted as threats.
  • In Monitor mode nothing is shown to visitors, so under attack mode has no effect and nothing is counted.
  • Automatic under attack mode (opt-in, Enforce mode only, on the Protection tab): Shield compares the current request rate with the site's normal rate every few minutes. When traffic reaches at least 8 times normal and at least 100 requests a minute, it switches under attack mode on and alerts you; it switches off by itself about an hour after traffic returns to normal. You can end it early from the Overview. Detection takes one to two checks (5 to 10 minutes).

DDoS protection

Shield traffic is served through a global edge network with always-on layer 3, 4 and 7 DDoS mitigation, plus under attack mode (above) for application floods. Protection applies to traffic that goes through Shield; keep your server's IP private and allow only Shield traffic to it (see Lock down your origin below).

Lock down your origin

Attackers who find your server's real IP address can send traffic straight to it and bypass Shield, including its DDoS mitigation. After your site is live on Shield:

  • Keep the origin IP private. Do not publish it in DNS: remove or move direct A and AAAA records for other subdomains (for example ftp, cpanel or dev) that point at the same server, and send mail through a separate host or provider so MX records do not reveal it.
  • Check older exposure: if the IP was public before you connected Shield, it may be recorded in DNS history services. Ask your host for a new IP address if you can.
  • Restrict inbound HTTP and HTTPS (ports 80 and 443) at your server or hosting firewall to Shield's edge ranges only: webforta.com/shield/edge-ips.txt, one range per line. Check it now and then; the list can change.
  • Require the origin key. The edge addresses are shared, so the airtight step is to refuse requests without the secret X-Webforta-Origin-Key header Shield adds to everything it forwards. Shield > Settings shows this site's key with ready-made Apache, LiteSpeed and nginx rules (they keep /.well-known/ open for certificate checks).
  • Keep other services (SSH, control panels, databases) limited to your own addresses, and make sure the server does not answer for your site on its bare IP address.
  • Test it: from outside, a request to your server's IP address should time out or be refused, while the site still loads normally through Shield.

Covering www and apex domains

Shield protects one hostname per connection. To cover both example.com and www.example.com, add each as its own website and connect each to Shield. Apex (root) domains can only be pointed at Webforta if your DNS provider supports CNAME flattening (for example Cloudflare DNS or Route 53 ALIAS); otherwise protect www and redirect the root to it.

More protection

  • Attack filter: SQL injection, cross-site scripting, path traversal, command injection, server-side request forgery, XML external entities, object and template injection, in URLs and in form, JSON and XML bodies up to 64 KB. File uploads are checked for server-executable files (.php, .phtml, .jsp, .htaccess and similar) in the first 64 KB of the upload.
  • Auto-ban: an address that sends 10 attacks within 5 minutes is blocked for 1 hour (24 hours if it comes back within a week; IPv6 by /64 network). Bans are listed on the Activity tab, where you can lift them or make them permanent.
  • Fake crawlers: requests claiming to be Googlebot or Bingbot from addresses Google and Microsoft do not use are blocked; the real crawlers are recognised by their published address ranges.
  • Credential stuffing: besides the per-IP login limit, more than 60 login attempts on one site within 5 minutes from all addresses together put every login behind the browser check until it calms down.
  • Scripted client check (opt-in): page loads from command-line tools and HTTP libraries must pass the browser check; APIs, feeds and static files are exempt. Put your own scripts and monitors on the always-allow list first.
  • Network threat intelligence: IPs that attacked any Webforta-protected site in the last 24 hours must pass a browser check on yours too.
  • Browser check: a short proof-of-work that real browsers solve automatically in about a second and scripts cannot fake.
  • Admin area access: make /wp-admin (or any area) reachable only from your own IP addresses (Firewall rules tab).
  • Purge cache (Settings tab) clears every cached file everywhere at once; add a custom message to the block page for visitors blocked by mistake.