version jump and readme

This commit is contained in:
2025-06-26 05:56:24 +00:00
parent 0cde465ab9
commit edd7f395ac
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,41 @@
# Plugin for attacks mitigation
## Install plugin and enable
```
wp plugin install --activate https://s.getcloud.info/n3storm/mitigation/archive/mitigation-0.03.zip
```
## Enable nginx mitigations
Go to vhost configuration and include mitigation/nginx.conf from this plugin.
For example if plugin is at /home/mysite.com/wp-content/plugins/mitigation add following code to nginx conf at server block:
```
server {
server_name mysite.com;
...
include /home/mysite.com/wp-content/plugins/mitigation/nginx.conf;
...
}
```
## Remove "Server: nginx" at http headers
```
apt install libnginx-mod-http-headers-more-filter
```
Edit /etc/nginx/nginx.conf at http block:
```
http {
more_set_headers "Server: Unicef";
...
```
Y después:
```
service nginx reload
```

View File

@ -20,7 +20,7 @@ class Mitigation {
/**
* Plugin version
*/
const VERSION = '1.0.0';
const VERSION = '0.03';
/**
* Single instance of the class