2.30. Restricting access to the site

You can restrict access to specific IPs or subnets:

  • Through the section "Access limitation».
  • Via .htaccess... Examples of directives can be found here.

You can restrict access to visitors from certain countries:

  • Through the section "Access limitation».
  • Via .htaccess... Examples of directives can be found here.

Attention!

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:

  • Via parking page for the domain.
  • Via .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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

2.1. Hosting account

A hosting account is a virtual or business hosting service that hosts website files, databases,...

2.2. Additional services

Detailed information 2.2.1. Dedicated IP 2.2.2. Additional space on NVMe...

2.3. My sites

Sites and their settings are managed in the section "Hosting → My sites»: Detailed information...

2.4. Backup

Working with automatic backups is performed in the section "Hosting → Backup»: Detailed...