Analyze PV with Elk to build an asynchronous WAF

Source: Internet
Author: User

Introduction:

First of all, we should all know the function and principle of WAF, the market is basically using Nginx+lua to do, here is no exception. But slightly different, the logic is not in Lua.

Instead of using Elasticsearch for analysis, LUA only uses the analyzed IP address to block, greatly reducing the direct interruption caused by false positives and other failures.

The architecture diagram is as follows:

You can get the following useful data:

1.pv,uv,ip and other data

2. After the analysis of the IP, the security personnel custom-made regular expression filtering, triggering the security rules to intercept.

3.lua this block only for IP to do matching interception, reduce Web performance consumption

The specific implementation will be explained in a later post

Analyze PV with Elk to build an asynchronous WAF

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.