Compare commits
1 Commits
0.01
...
mitigation
Author | SHA1 | Date | |
---|---|---|---|
edd7f395ac |
41
README.md
41
README.md
@ -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
|
||||||
|
```
|
@ -20,7 +20,7 @@ class Mitigation {
|
|||||||
/**
|
/**
|
||||||
* Plugin version
|
* Plugin version
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.0.0';
|
const VERSION = '0.03';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Single instance of the class
|
* Single instance of the class
|
||||||
|
Reference in New Issue
Block a user