Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.4.4. Restrict access to site
IP addresses and subnets
You can restrict access for specific IP addresses or subnets in the following ways:
- .htaccess (see examples of directives).
Bots
See Bot protection.
Countries
You can restrict access for visitors from specific countries in the following ways:
- .htaccess (see examples of directives).
Disallow indexing
Attention!
If you disallow indexing, the site will disappear from search engine results.In the site root directory, create a robots.txt file with the following content (for more details, see robots.txt): User-agent: * Disallow: / </code>
Placeholder instead of site
You can display a placeholder (a specific piece of HTML code) instead of the site in the following ways:
- Configure a redirect to a specific file using .htaccess (instead of
example.php, specify the desired file):RewriteEngine on RewriteCond %{REQUEST_URI} !^/example.php$ RewriteRule .* /example.php [L]
(1)