Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 587 Bytes

File metadata and controls

22 lines (17 loc) · 587 Bytes

INTRODUCTION

A shell script to calculate the number of requests the webserver has received per second by monitoring the access log.

APPLICATION

The output from the script can be integrated with firewall rules to block traffic if the number of requests exceeds a certain threshold.

Clone the repository to your local system.

git clone https://github.com/sreehariskumar/hits_per_sec.git

Navigate to the directory.

cd hits_per_sec

Grant execute permission to the hitspersec.sh script and then execute the script.

chmod +x hitspersec.sh
./hitspersec.sh