mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1026 from YunoHost/remove-useless-robots-protection
Remove useless robot protection code
This commit is contained in:
commit
8911499bf3
1 changed files with 0 additions and 6 deletions
|
@ -18,12 +18,6 @@ server {
|
|||
more_set_headers "Referrer-Policy : 'same-origin'";
|
||||
|
||||
location /yunohost {
|
||||
# Block crawlers bot
|
||||
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
|
||||
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
|
||||
access_by_lua_file /usr/share/ssowat/access.lua;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue