Hello All,
Below are the code for prevent all users to get logged-In via wordpress admin section using .htaccess file.
Put this code in .htaccess file at very starting of the page.
<FilesMatch "^wp-login.php$"> Order deny,allow Deny from all #Allow from x.x.x.x </FilesMatch>
You can also give rights to particular user by define IP address in “Allow from”
For Example :
<FilesMatch "^wp-login.php$"> Order deny,allow #Deny from all Allow from x.x.x.x </FilesMatch">