Sites
Access, caching and protection
Maintenance mode, redirects, headers, CORS, error pages, restricted paths, password protection, IP allowlists, canonical host, page cache, object cache and the web application firewall.
Access rules
The site's Access pane controls who can reach it and under which name.
- Canonical host: other names (aliases) redirect here, e.g.
example.com→www.example.com. - Password protection (HTTP basic auth): a User and a Password (at least 8 characters) asked before every page — handy for staging sites. Leave the new password empty to keep the current one.
- Password-protected folders: a folder such as
/adminasks for its own user names and passwords (up to 20 users a folder) before anything in it is served; the site's own user gets in too. Available on PHP and static sites, with nginx and OpenLiteSpeed alike. Passwords are kept as hashes, and a user's password stays when you leave it empty. - Allow only from: IP addresses or CIDR ranges, one per line. Empty allows everyone.
Certificate renewals keep working whatever the access rules are.
IP address, below the access rules, gives the site its own IPv4 and/or IPv6 address of the server, or keeps it on the shared addresses — see Network and IP addresses.
Site rules
A site's Rules pane sets how the web server answers before your app does. Save rules applies everything at once.
| Rule | What it does |
|---|---|
| Maintenance mode | Everyone gets a "We'll be back soon" page (in English and Turkish) with HTTP 503 and Retry-After, so search engines keep the site; the addresses you list still see it (nginx only for the list: on OpenLiteSpeed the page is for every visitor, so an allow list is refused there). Certificates keep renewing |
| Redirects | From a path to another path or a full URL with 301, 302, 307 or 308. Everything below also moves sub-pages (/blog/a → /news/a). The query string is kept. Up to 200 |
| Response headers | Extra headers on every response, e.g. Security headers (X-Frame-Options, Permissions-Policy, Cross-Origin-Opener-Policy), Content-Security-Policy (safe) (HTTPS-only resources, no framing by other sites, no plugins), Strict CSP (report only) (a strict policy the browser reports instead of enforcing, to see what it would block) or Hide from search engines (X-Robots-Tag: noindex). Headers Zefily manages (HSTS, caching, CORS, Set-Cookie…) cannot be set here |
| CORS | Lets browser apps on the origins you list (or *) call the site; preflight requests are answered by the web server. Credentials allows cookies and authorization headers |
| Error pages | Your own pages (in the web root) for 403, 404, 500, 502, 503 and 504 when the web server produces the error: a missing static file, or 502/504 while the app is down. Errors your app renders itself are unchanged |
| Password-protected folders | The folders you list (e.g. /admin) ask for their users' names and passwords before anything in them is served, PHP included. Set under Access (see above). Up to 10 folders and 20 users each |
| Request rate limit | nginx only. Limits the requests one address can make per second, on the whole site or below a path such as /wp-login.php (e.g. 5 requests per second, burst 10); requests over the limit get 429 Too Many Requests. Off by default |
| Restricted paths | Only the addresses you list may open a path and everything below it, e.g. /wp-admin for your office; others get 403. Up to 20 |
| Block AI crawlers | Refuses GPTBot, ClaudeBot, CCBot, PerplexityBot, Bytespider and other crawlers that collect content for AI models (403). Search engines are not affected. Zefily keeps the list up to date |
| Blocked addresses | Addresses and networks refused on the whole site (403). Up to 200 |
| Countries | Block these countries, or Allow only these countries, by two-letter code (TR, DE, US…). nginx only |
Blocked visitors get 403; certificate validation always gets through. Behind Cloudflare's proxy the rules see the visitor's real address (the server trusts CF-Connecting-IP from Cloudflare's addresses only). A country is the one an address block is registered to at the five regional internet registries (ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC); the server downloads their lists and refreshes them weekly. That matches the visitor's location for almost every address, but VPNs and some mobile networks can appear elsewhere. In Allow only mode, the server's own and private addresses are always allowed.
On OpenLiteSpeed, CORS allows one origin or *, blocked addresses and the sources a restricted path allows are single addresses or /8, /16 and /24 IPv4 networks (a restricted path may be an app route with no directory behind it), and country rules are not available. Values with quotes, $, braces, backslashes, spaces or line breaks are refused: they would change the web server's configuration.
Caching
On the site's General pane, Caching and protection:
-
Page cache stores pages for anonymous visitors in nginx's FastCGI cache for the time you choose; logged-in users, carts and checkouts bypass it (WordPress and WooCommerce rules included). Purge empties it, for example after a design change. On OpenLiteSpeed, a site's PHP loads the panel's page-cache marker (
/usr/share/php/zefily/page-cache.php) to decide what is stored; if the site sets its ownauto_prepend_file(for example a security plugin's.user.ini), that replaces the marker and the site's pages are not cached, and the marker file stays on the server when the agent is removed. On OpenLiteSpeed the page cache is off for WordPress sites for now; the LiteSpeed Cache plugin still works for the browser and object cache. -
Page cache: Do not cache these paths lists URI prefixes (one per line, such as
/shop/) that always reach PHP, applied on nginx; and on a WordPress site, publishing or taking down a post, and a WooCommerce price, stock or order change, empties the page cache by itself. On OpenLiteSpeed the page cache is the LiteSpeed Cache plugin. Switching it on for a WordPress site asks first, then installs and activates the plugin from wordpress.org (an audited change). The same paths are kept out of its cache: the panel's must-use plugin calls the plugin's documented no-cache action for them. A post change calls its purge action only while the plugin is active. -
Object cache gives the app a Valkey (Redis-compatible) object cache for WordPress or Laravel. Install the object cache once on the server's Databases section; the switch then appears on each PHP site.
-
New WordPress sites and imports start with a page cache of 300 seconds for visitors who are not signed in, the object cache when the server has one, and WP-Cron on a 5-minute system timer. Each one can be changed or turned off on the site's Performance tab.
Web application firewall
With the WAF installed in the server's web stack (ModSecurity with the OWASP Core Rule Set), each site chooses:
- Detect only — attacks are logged but not stopped. Start here to check that the app works normally.
- Block — attacks are refused with a 403.
- Off.
Rules to skip (next to the setting, on a site whose WAF is on) lists rule IDs from the OWASP Core Rule Set that the site's firewall does not check, for example a rule that blocks a form on your own page. Add the ID that the server's log names for the blocked request (a Zefily support answer can tell you which one); the list takes up to 50 IDs between 910000 and 9999999, separated by commas. Remove an ID to block again. Only the Core Rule Set's own rules can be skipped; the setup rules below 910000 cannot. Rules that score or block the whole request cannot be removed either: 949000–949999, 959000–959999 and 980000–980999, and Zefily's own rules 9600000–9609999 (to let a path through on a WordPress site, turn off the matching WordPress filter for that site instead).
The WordPress exclusions plugin of the Core Rule Set is loaded on every server: it stops known false positives on WordPress front ends, the admin area and the REST API. It only affects requests that match its rules, so it does not change how other sites are checked. Use Detect only first and skip a rule only when a real page is blocked.
WordPress rules
Zefily's own rules are added to the Core Rule Set:
- On a WordPress site, a PHP file uploaded under
/wp-content/uploads/is refused, also in its variants (.php5,.phtml) and in a path such asx.php/x.jpg. The WordPress filter No PHP in uploads does the same on the web server; the rule is the second line when that filter is off. - On every site with the WAF on, an upload whose
Content-Dispositionnames a script file is refused, also through thefilename*parameter (CVE-2026-104269). Names such asphoto.jpgornotes.php.jpgare not refused. - On every site with the WAF on, dot files (
.env,.git), configuration copies and backup or SQL dumps are refused.
The WordPress filters of a site (set in the panel) are checked by the web server before the firewall. New WordPress sites start with uploads, sensitive files, author scans and file editing filtered; XML-RPC, the REST user list and the other filters are off until you turn them on. A site that needs XML-RPC (for example Jetpack) must keep that filter off.
Built-in protection
Every site also gets, without any setting: hidden dotfiles (.env, .git) and backup files (.sql, .bak…), security headers (X-Content-Type-Options, Referrer-Policy), 30-day browser caching for static assets, CrowdSec blocking attackers at the firewall, and its own Linux user so it cannot read other sites' files.
WordPress sites have extra Security filters — see WordPress.
Updated November 28, 2026 View as Markdown llms.txt