Created
December 10, 2023 11:28
-
-
Save BenceSzalai/b6b841452b9c60f629ce776960cd81af to your computer and use it in GitHub Desktop.
Block access to xml-rpc except for a set of IP addresses
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
# Block WordPress xmlrpc.php requests | |
<Files xmlrpc.php> | |
#Require ip xxx.xxx.xxx.xx1 | |
#Require ip xxx.xxx.xxx.xx2 | |
#... add more enabled IP addresses as needed! | |
Require all denied | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment