База знаний

Restrict the whole website to trusted IPs

Эта статья есть на вашем языке: Как открыть сайт только доверенным IP-адресам

Allowlist mode permits website access only from specified IPv4 addresses and networks. It covers the entire site, including APIs and external callbacks. To restrict only /admin, use an administration-path rule.

Find the public IP of your office, VPN or other trusted source first. 198.51.100.27/32 is an example office address; replace it with your actual IP. A computer's private address and the website server's Remote IP serve different purposes. Record the current settings and keep the panel open while testing.

Enable the allowlist

  1. Open WebShield → Manage project → Manage site → Access Control → IP restrictions.
  2. Under Белый список (Allowlist), enter your public IPv4, for example 198.51.100.27/32, and click the green + button.
  3. Add other trusted sources, including monitoring and integrations that need access. Verify the CIDR and complete permitted range before adding a network.
  4. Wait for the entries to save, then select Пускать только из белого списка (Allow only the allowlist). Both a populated list and this mode are required. These labels remain in Russian.
  5. Wait for saving and application, reload the page and check the stored mode.

Open https://example.com, replacing the hostname with your domain, from a trusted network. Repeat from another network, such as mobile data without the office VPN: it should be denied. Test the required automated clients too.

The form rejects an empty allowlist in this mode. A dynamic public IP can change and require an updated entry. Your tariff limits the number of entries; the form uses IPv4/CIDR.

Исключения из фильтрации (Filtering exceptions) does not restrict who can visit and cannot replace the allowlist. Other site settings may still affect a permitted IP. To restore public access, select Без ограничений (No restrictions), wait for saving and retest from an external network. Use the 403 diagnostic guide for unexpected denials.

Статья была полезна?