mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #622 from ABLD/frju365-patch2
Improve protection against indexation from the robots.
This commit is contained in:
commit
8f50bdeb28
1 changed files with 2 additions and 1 deletions
|
@ -60,7 +60,8 @@ server {
|
||||||
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
|
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
# X-Robots-Tag to precise the rules applied.
|
||||||
|
add_header X-Robots-Tag "nofollow, noindex, noarchive, nosnippet";
|
||||||
# Redirect most of 404 to maindomain.tld/yunohost/sso
|
# Redirect most of 404 to maindomain.tld/yunohost/sso
|
||||||
access_by_lua_file /usr/share/ssowat/access.lua;
|
access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue