0

I want to redirect one specific url in Nginx to 'not found' or 'hidden'

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

reason: https://hackerone.com/reports/925425

my codes in nginx.conf are, it's not working :(

server {
    listen 80 default_server;
    server_name _;
    location ~ load-scripts\.php|load-styles\.php {
        deny all;
    }
}
Ricky
  • 1
  • Stop running out of date versions of WordPress. There is no need to do this, just update WordPress. – Michael Hampton Sep 27 '21 at 10:38
  • This nginx configuration is not the nginx configuration for WordPress. So you need to look for the correct configuration in your nginx folder. To find the correct configuration, you can search for the `root` directive in the nginx configs, there should be the path to your WordPress files and if the `root` and your path to the WordPress files are identical, the configuration is the correct configuration. – Extrem Techniker Sep 27 '21 at 07:48

0 Answers0