Sunday 28 August 2016

Error 403 on the Wordpress Login Page

When trying to login through a login page appears 403 mistake. Rather, you simply can not get to the login page, as instead you highlights that access is limited.

If you try to login page or /wp-login.php / wp-admin / and you see the following message:



"403 Forbidden

You do not have permission to access /wp-login.php on this server."


This means that you hacked !!! I'm sorry joke. So thought the man who turned to the question why he does not let the admin panel and knocks that he is denied access to your site. Of course, option with the burglary is possible to exclude it is impossible, but most likely it is not.

What to do if you do not let the admin panel and knocks out the error 403? We must, as usual, add a bit of code. Add it must be in the file .htaccess , which lies on the main site directory. You must go to the main folder on the hosting. This may be a folder called public_html, www, HTDOCS or match the domain of the site. It will be situated the .htaccess file. This file is used for the additional web server configuration. About some of its features can be found in the article - How to create a .htaccess file and some useful codes . Now the code itself to be added to the end of .htaccess:

<Files wp-login.php>
Order Deny,Allow
Allow from all
</Files>

Just before adding the above code in the .htaccess , make sure that there's no such code:

<Files wp-login.php>
Order Deny,Allow
Deny from all
</Files>

If it is, just delete it and try to log in.

What makes the first code? It provides access to /wp-login.php for anyone who tries to log in. If you want to access was only you, you need to slightly modify the code and enter your IP address. For example, the finished code looks like this:

<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from 255.255.255.255
</Files>

As you understand, instead of 255.255.255.255 you specify your ip address. But there is one point. If you have a Dynamic IP, that is, changes with every connection, you have to change it every time, and in this code.

From what error occurs with access to the login page? Perhaps your web hosting is done in order to prevent any attack on your website, about which you did not know, because of the lack of time.

If suddenly you happened such a nuisance, then you now know what to do.

No comments:

Post a Comment