Connect a site
- Add your domain and origin in the dashboard. The origin is where your website really runs, for example https://origin.yoursite.com.
- Create the two DNS records the dashboard shows: one proves ownership, one sends visitors through Deflectra.
- The dashboard checks your DNS live and connects the domain automatically. The certificate follows by itself.
- Lock your origin with lock_origin in PHP Guard or by checking the X-Deflectra-Secret header, so nobody can go around the firewall.
if ($http_x_deflectra_secret != "YOUR_ORIGIN_SECRET") {
return 403;
}Security levels
Low and Medium block clear attacks (score 5 or higher). High blocks from score 4 and challenges unusual browsers. Under Attack challenges every new visitor. Off disables WAF inspection; your own rules and limits keep working.
APIs and webhooks cannot solve a challenge. Create your own Allow rule for them, preferably by IP range. Such a rule skips every check, so keep it narrow.
Install PHP Guard
Download the file from your site's PHP Guard tab, keep it outside your web root if possible, and add this to .user.ini or php.ini. With a CMS that stores HTML, start in log mode.
auto_prepend_file = /full/path/deflectra-guard.phpLimits to keep in mind
- Through the proxy an upload is at most 4 MB per request. WebSockets are not forwarded.
- The WAF inspects the first 64 KB of a body. Keep your code safe too: use prepared statements and escape your output.
- Deflectra filters at application level and is not a network against large volumetric DDoS attacks.