htaccess access not working
My .htaccess within my wp-admin isn't working. This is what I have within the file
Is something wrong? Could something in my root htaccess stop this from working? Thanks :)
Order deny,allow
deny from 1.1.0.0/16
deny from 1.52.0.0/16
deny from 103.0.0.0/8
deny from 104.238.0.0/16
deny from 105.99.0.0/16
deny from 109.0.0.0/8
deny from 112.0.0.0/8
deny from 117.253.0.0/16
deny from 119.63.0.0/16
deny from 121.54.0.0/16
deny from 123.0.0.0/8
deny from 128.0.0.0/8
deny from 136.243.0.0/16
deny from 149.0.0.0/8
deny from 171.0.0.0/8
deny from 175.0.0.0/8
deny from 176.0.0.0/8
deny from 178.0.0.0/8
deny from 179.0.0.0/8
deny from 180.0.0.0/8
deny from 185.0.0.0/8
deny from 188.0.0.0/8
deny from 193.0.0.0/8
deny from 195.154.0.0/16
deny from 198.50.0.0/16
deny from 2.50.0.0/16
deny from 217.0.0.0/8
deny from 31.0.0.0/8
deny from 37.0.0.0/8
deny from 41.0.0.0/8
deny from 45.0.0.0/8
deny from 46.0.0.0/8
deny from 49.204.0.0/16
deny from 5.0.0.0/8
deny from 59.178.0.0/16
deny from 61.135.0.0/16
deny from 62.0.0.0/8
deny from 64.113.0.0/16
deny from 72.167.0.0/16
deny from 75.115.0.0/16
deny from 77.0.0.0/8
deny from 78.0.0.0/8
deny from 79.0.0.0/8
deny from 80.0.0.0/8
deny from 81.0.0.0/8
deny from 82.0.0.0/8
deny from 83.0.0.0/8
deny from 84.0.0.0/8
deny from 85.0.0.0/8
deny from 86.0.0.0/8
deny from 87.0.0.0/8
deny from 88.0.0.0/8
deny from 89.0.0.0/8
deny from 90.0.0.0/8
deny from 91.0.0.0/8
deny from 92.0.0.0/8
deny from 93.0.0.0/8
deny from 94.0.0.0/8
deny from 95.0.0.0/8
deny from 96.0.0.0/8
deny from 99.222.0.0/16
allow from all
# Error 403 deny Server Access Page
ErrorDocument 403 http://www.example.xyz/4-0-3/Is something wrong? Could something in my root htaccess stop this from working? Thanks :)
-
Hi, What is not working about this htaccess? You haven't given any indication as to what the actual problem is. Please advise :) 0 -
I have a .htaccess in the root folder. I then have a .htaccess in my wp-admin folder. It seems that some of the Deny Ranges are not working. I am not sure why not, but it is almost like because the .htaccess in the root folder it is not reading the .htaccess within the .htaccess. 0 -
If you are going to list your allows before your deny rules, you need to change order deny,allow to order allow,deny That said, it is worth a shot to do that (change to order allow,deny, followed by your allow from all and then the deny rules.) 0 -
Thanks guys, I have tried something else and see how it goes. I am slowly installing SSLs on my sites to reduce the hacking attempts. Further to that I don't want to be specific as I do change location a lot and use a mobile 4G hotspot which often has a different IP address. I just want to deny access to those attempting to hack in, which I think i have done. 0
Please sign in to leave a comment.
Comments
4 comments