我可以在 Nginx for WordPress 中重新導向一個特定的網址嗎?

我可以在 Nginx for WordPress 中重新導向一個特定的網址嗎?

我想將 Nginx 中的一個特定網址重新導向為“未找到”或“隱藏”

網址:/wp-admin/load-scripts.php?c=1&load[]=jquery-effects-blind

原因:https://hackerone.com/reports/925425

我在 nginx.conf 中的程式碼是,它不起作用:(

server {
    listen 80 default_server;
    server_name _;
    location ~ load-scripts\.php|load-styles\.php {
        deny all;
    }
}

相關內容