YunoHost / packages_old

[not used anymore] YunoHost Debian package sources
http://yunohost.org
8 stars 7 forks source link

block googlebot #20

Closed beudbeud closed 9 years ago

beudbeud commented 10 years ago
location /yunohost {
   if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider) ) {
       return 403;
   }
}
opi commented 9 years ago

agree

jeromelebleu commented 9 years ago

+1 and what about blocking Facebook too? http://www.botsvsbrowsers.com/details/523155/index.html

opi commented 9 years ago

+1 for facebook. Updated config is

location /yunohost {
   if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
       return 403;
   }
}
Kloadut commented 9 years ago

+1

opi commented 9 years ago

Which config file is concerned : yunohost-config-nginx / config / yunohost_admin.conf or yunohost-config-nginx / config / template.conf

Kloadut commented 9 years ago

yunohost-config-nginx / config / yunohost_admin.conf