.htacces is being ignored in wp-admin folder

I want to add protection to my wordpress site by specifing what ip addresses can access the admin dashboard. I’ve created a .htaccess file in /wp-admin folder and added the code. However it seems that the .htaccess file is being completely ignored. Does anybody know why this is happening.

Code:

  order deny,allow
  allow from 000.000.000.000 (my ip address)
  deny from all

Related posts

Leave a Reply

1 comment