Skip to content

Commit 34a9c5d

Browse files
authored
Merge pull request #375 from ByteInternet/hypercharles-GoogleOther-patch
Update how-to-fix-performance-issues-caused-by-bots-and-crawlers.md
2 parents 0213ff9 + 6202d7c commit 34a9c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/best-practices/performance/how-to-fix-performance-issues-caused-by-bots-and-crawlers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ GET /clothing/pants.html?color=1181_1188_1500 HTTP/1.1 Mozilla/5.0 (compatible;
5555
It is clear that the “size” and “color” parameters are used for layered navigation, because they define subsets of your catalogue. For normal indexing, you only want /clothing.html and /clothing/pants.html indexed. To block bots in this case, you should add this to `/data/web/nginx/server.layered_navigation:`
5656

5757
```nginx
58-
if ($http_user_agent ~* 'http|bot|crawl|spider') {
58+
if ($http_user_agent ~* 'http|bot|crawl|spider|GoogleOther') {
5959
set $is_bot 1;
6060
}
6161
# Here, you should define the layered navigation urls.

0 commit comments

Comments
 (0)