Hide .user.ini
Posted: Thu Jul 05, 2018 10:34 pm
How can I hide .user.ini file in Wordpress installation?
I've tried to include that different ways on /home/username/conf/web/website.nginx.conf:
---
location ~ \.user\.ini$ {
deny all;
}
---
location ~ ^/\.user\.ini {
deny all;
}
---
And to add ini on htaccess and htpasswd:
location ~* "/\.(htaccess|htpasswd|ini)$" {
deny all;
return 404;
}
---
How can I hide it? Should it be included with Wordpress template?
I've tried to include that different ways on /home/username/conf/web/website.nginx.conf:
---
location ~ \.user\.ini$ {
deny all;
}
---
location ~ ^/\.user\.ini {
deny all;
}
---
And to add ini on htaccess and htpasswd:
location ~* "/\.(htaccess|htpasswd|ini)$" {
deny all;
return 404;
}
---
How can I hide it? Should it be included with Wordpress template?