1. Home
  2. Knowledge Base
  3. Applications
  4. Wordpress
  5. How to secure the Wordpress admin dashboard using .htaccess via Oryon cPanel?

How to secure the Wordpress admin dashboard using .htaccess via Oryon cPanel?

Step 1: Login to your cPanel account that is hosted under Oryon server.
Step 2: Select the ‘File Manager’ option under ‘Files’ section of cPanel.
Step 3: Navigate to the ‘wp-admin’ folder the Wordpress installation and locate the .htaccess file.
Step 4: If there is no such .htaccess file, then create it and add the following codes into .htaccess to prevent the Wordpress login from the unknown IP address.

+++
# Limit logins and admin by IP
<Limit GET POST PUT>
order deny,allow
deny from all
allow from 12.34.56.78
</Limit>
+++

Step 5: In the above, replace the number ‘12.34.56.78’ with your IP address and save the .htacess file.

Note: You can get the public IP address from https://www.whatismyip.com/

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support