I wrote a simple script to prevent IP attacks.

Source: Internet
Author: User
I wrote a simple script to prevent IP attacks-general Linux technology-Linux programming and kernel information. The following is a detailed description. I wrote a simple script to prevent IP attacks.
I wrote a simple script to prevent IP attacks, which can prevent some minor IP attacks on linux virtual hosts.

The system is based on RHEL's centos, including 3, 4, and 5 versions. Of course, I am also a beginner in shell. There are certainly a lot of stupid methods in the middle, and the results are not necessarily good. Please give us some comments.

Note: This script is based on the server-status of the apache server and the dmesg analysis result of the system. Therefore, non-apache users and friends who have not enabled server-status cannot use this script.

You can set the script to run every minute in the crontab of the server,
Copy the following script to autoblock. sh,
Root User # chmod u + x autoblock. sh
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.