Commit 4d41e329 authored by omega8cc's avatar omega8cc

Deny crawlers on search results pages as they may cause very high load on...

Deny crawlers on search results pages as they may cause very high load on sites with non-English default lang because of the amount of not cached queries on the url_alias table (Nginx)
parent b19ab36f
......@@ -169,7 +169,7 @@ location ~* (?:cgi-bin|vti-bin|wp-content) {
###
### Deny bots on some weak modules uri.
###
location ~* (?:calendar|event|validation|aggregator|vote_up_down|captcha) {
location ~* (?:calendar|event|validation|aggregator|vote_up_down|captcha|results) {
if ($is_bot) {
return 403;
}
......
......@@ -155,7 +155,7 @@ location ~* (?:cgi-bin|vti-bin|wp-content) {
###
### Deny bots on some weak modules uri.
###
location ~* (?:calendar|event|validation|aggregator|vote_up_down|captcha) {
location ~* (?:calendar|event|validation|aggregator|vote_up_down|captcha|results) {
if ($is_bot) {
return 403;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment