You are here:--Nginx 와 WordPress 에서 xmlrpc 접속 거부

Nginx 와 WordPress 에서 xmlrpc 접속 거부

1. Nginx 의 conf 수정

server {

location ~* /wp-includes/.*.php$ {
deny all;
access_log off;
log_not_found off;
}

location ~* /wp-content/.*.php$ {
deny all;
access_log off;
log_not_found off;
}

location ~* /(?:uploads|files)/.*.php$ {
deny all;
access_log off;
log_not_found off;
}

location ~* /modules/.*.php$ {
deny all;
access_log off;
log_not_found off;
}

location ~* /skins/.*.php$ {
deny all;
access_log off;
log_not_found off;
}

location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}
}

2. WordPress 플러그인 설치

Disable XML-RPC 설치

3. 참고 사이트

kinsta.com/blog/wordpress-xml-rpc/

ko.wordpress.org/plugins/disable-xml-rpc/

bjornjohansen.no/block-access-to-php-files-with-nginx/

By |2018-09-04T15:57:56+00:004월 21st, 2018|Categories: Tech|0 Comments

About the Author: