BASH   199
Pipe nginx log through this script to remove bot hits
Guest on 28th November 2024 07:08:56 AM


  1. #!/bin/bash
  2. # Pipe nginx log through this script to remove bot hits
  3. egrep -v '(Yandex|Baidu|Google|Slurp|bingbot|Sogou|DotBot|msnbot|MJ12bot|Exabot|Twitterbot|omgilibot|Kraken|Applebot|BuzzSumo|bitlybot|AhrefsBot|rogerbot|Spiderbot|linkdexbot|Cliqzbot|Buzzbot|trendictionbot|Bot|Crawler|Yeti|Mediatoolkitbot|datagnionbot|ISSbot|linkapediabot|Slack|NewsNow|ltx71)'

Raw Paste

Login or Register to edit or fork this paste. It's free.