Last active
March 14, 2023 06:07
-
-
Save dustyfresh/d75d557d8212cc1dba51b3552ca4442e to your computer and use it in GitHub Desktop.
nginx rule to mitigate DoS attack on WordPress load-scripts.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://baraktawily.blogspot.fr/2018/02/how-to-dos-29-of-world-wide-websites.html | |
# https://wpvulndb.com/vulnerabilities/9021 | |
location ~* ^/wp-admin/load-scripts\.php$ { | |
if ( $query_string ~* "^.{1024,}$" ) { | |
return 444; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing. Might want to also mitigate load-styles.php, as it has the same issues.