2.4.4. Website Access Restriction
For IP addresses or subnets
You can restrict access to specific IP addresses or subnets by:
- Through section «Access restriction».
- Through .htaccess (cm. examples of directives).
For countries
You can restrict access to visitors from certain countries:
- Through section «Access restriction».
- Through .htaccess (cm. examples of directives).
Disable site indexing by search engines
Attention!
When indexing is disabled, the site will disappear from search engine resultsCreate in root directory of the site file 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.
Stub instead of site
You can display a stub (specific HTML code) instead of a website in several ways:
- Through parking page.
- Through .htaccess 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 that should open instead of the site.