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.