Skip to content

Commit

Permalink
feat: filter bad search bot in NGINX
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu committed Dec 11, 2023
1 parent db9c3d1 commit 9e8ae6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .platform/nginx/conf.d/elasticbeanstalk/filter_agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if ($http_user_agent ~* (AhrefsBot|SemrushBot|SeekportBot|PetalBot|Qwantify-dev|CCBot|Bytespider) ) {
return 202;
}

0 comments on commit 9e8ae6f

Please sign in to comment.