Skip to content

Commit

Permalink
[update] 2020-07-19 : reset the contents of table
Browse files Browse the repository at this point in the history
  • Loading branch information
kitcharoenp committed Jul 22, 2020
1 parent a8cc674 commit 9a921aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ LOAD MYSQL QUERY RULES TO RUNTIME;
SAVE MYSQL QUERY RULES TO DISK;
```

### Reset the contents of the table `stats_mysql_query_digest`
To achieve this we can simply run any query against `stats_mysql_query_digest_reset`
```sql
SELECT * FROM stats_mysql_query_digest_reset LIMIT 1;
```


### Show result after apply rule
```sql
SELECT hostgroup hg, digest, count_star,
Expand Down
5 changes: 4 additions & 1 deletion _posts/2020-07-20-apache2_harden.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ sudo sysctl -p
```

### Using Mod_security
> ModSecurity is an open source, cross-platform web application firewall (WAF) module. Known as the "Swiss Army Knife" of WAFs, it enables web application defenders to gain visibility into HTTP(S) traffic and provides a power rules language and API to implement advanced protections. [2][2]
> ModSecurity is an open source, cross-platform web application firewall (WAF) module.
Known as the "Swiss Army Knife" of WAFs, it enables web application defenders
to gain visibility into HTTP(S) traffic and provides a power rules language and API to implement advanced protections. [[2]]

```shell
$ sudo apt install libapache2-mod-security2 -y
Expand All @@ -65,6 +67,7 @@ should get the below output:
security2_module (shared)
```


### Using Mod_evasive
Detects and provides protection against DDOS and HTTP brute force attacks.

Expand Down

0 comments on commit 9a921aa

Please sign in to comment.