Restrict access to back office

How can I limit access to the WordPress back-office, for example to start a website migration?

Add this code to your .htaccess file to block all access except IP 195.0.0.1:

<Limit GET POST PUT>
order deny,allow
deny from all
allow from 195.0.0.1
</Limit>

Submit a Comment

Your email address will not be published. Required fields are marked *