This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ## | |
| ## livestats.sh - an awk based realtime aggregation of logfiles | |
| ## | |
| ## USAGE EXAMPLES | |
| ## tail -f access.log | livestats.sh | |
| ## tail -n 10000 access.log | livestats.sh -c 10 -n 20 -l 0 | |
| ## zcat access.log.2.gz | grep POST | livestats.sh -c 7 -l 0 -n 5 | |
| ## ./livestats.sh -f access.log | |
| ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This nginx configuration demonstrates how to set up | |
| # user agent based rate limiting to restrict AI Bots | |
| # in case of huge system load caused by bots | |
| # Typically these bots come from several IP ranges | |
| # and are hard to restrict manually. | |
| # Unfortunately these AI bots ignore meta robots tags | |
| # and don't understand robots.txt very well. | |
| # For more details regarding blocking in nginx, see |