Thanks for the code. I will use it on my sites.Use a limit login attempts plugin and also this little piece of code in the .htaccess file.
It re-direct's a request from the admin page to an error file if someone attempts to login from an IP that is NOT 123.456.789.111.
I'm still trying to figure out how to stop xmlrpc attacks.
# BEGIN WordPress
ErrorDocument 401 /error401.php
ErrorDocument 403 /error403.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^123.456.789.111$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>
Use a limit login attempts plugin and also this little piece of code in the .htaccess file.
It re-direct's a request from the admin page to an error file if someone attempts to login from an IP that is NOT 123.456.789.111.
I'm still trying to figure out how to stop xmlrpc attacks.
# BEGIN WordPress
ErrorDocument 401 /error401.php
ErrorDocument 403 /error403.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^123.456.789.111$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>
This is the best post I`ve seen in a while. Thank you but I was missing around 3 of the points0. Scan your WP with WP-Scan and follow the instructions.
1. Change "/wp-login. php" to another link. Better link is "/abmgpskjg".
2. Delete readme and licence file.
3. Change username from admin to another.
4. Ban IPs for 10 failure login attempt.
5. Be careful with plugins, sliders, themes eg. that you install. In this case check exploit-db
6. Keep your WP up to date.
7. Check server settings (apache,nginx).
8. If you use VPS/dedicated server switch off FTP daemon and use sftp via sshd.
9. --||-- set permit root login to : "no". (This setting is in file /etc/ssh/sshd_config)
10. Check chmods and chowns. Set config files to 440, wp-content/uploads to 775.
It seems like there are so many different ways that hackers can get into your WordPress sites, inject spam ans malware, links etc. How are you guys protecting your PBN sites? Let's get a helpful thread going because we need to stop those ass holes
Why in the world would someone hack a crappy looking PBN site?
Why in the world would someone hack a crappy looking PBN site?