I'm trying to restrict access to the admin dashboard (wp-admin.php) by specific static ip so I tried to add .htaccess to the wp-admin and set
<FilesMatch "admin\.php$">
Order deny,allow
Deny from all
Allow from 10.0.0.0/24
</FilesMatch>
but it is not working so I tried to install bulletproof plugin also and changed
<IfModule !mod_authz_core.c>
<IfModule mod_access_compat.c>
Order Allow,Deny
Deny from all
Allow from 000
</IfModule>
</IfModule>
</FilesMatch>
but it is not working either.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire