2.30. Restricting access to the site

You can restrict access to specific IPs or subnets:

You can restrict access to visitors from certain countries:


Disabling the indexing of the site will lead to its disappearance from the search engine results

It is necessary to create a file in the root directory of the site robots.txt with content like this:

User-agent: *
Disallow: /

A more detailed description of the syntax of the robots.txt file can be found on the Internet yourself.

Display stub (defined HTML-code) in several ways:

  • Through parking page for the domain.
  • Through .htaccess you can configure redirection of all requests to a specific file:
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/example.php$
    RewriteRule .* /example.php [L]

    Instead example.php specify the file you want to output.