
For example, if you have a WordPress blog installed on your main directory like example.com/wp-admin, you should create an .htaccess file in /wp-admin/.htaccess and you should put this code in, and not forget to replace the allowed IP address with your IP address.
order deny,allow
deny from all
allow from YOUR-IP-ADDRESS-HERE
(Replace "Your-IP-Address-Here" text with your IP Address)
You can test this by accessing your /wp-admin IP address from another IP address which is not allowed by your .htaccess file.
Get Fast & Affordable Hosting in India
Start your website with SSD hosting, free SSL, cPanel, daily backups and 24/7 support from HostCupid.
Also explore: WordPress Hosting | Reseller Hosting | Domain Registration
Read the Complete Hosting Security Guide
- 0 istifadəçi bunu faydalı hesab edir
Əlaqəli məqalələr
-
How to Download Backup of Home Directory, MySQL or E-mail Only?
1. Log into your cpanel account.2. In the "Files" section, click on "Backup Wizard" Icon. 3....
How to check disk usage of directory and bandwidth usage?If you are receiving a disk space usage warning and don't know which folder is using too...
How to Update a Cronjob E-mail Address?If you want to receive a cronjob error or notification, you can update your e-mail address from...
How to add a user to a database and add privileges?1. Log into your cpanel account.2. In the "Databases" section, click on "SQL Databae"...
How to update DNS Nameserver on Name.com?After purchasing our hosting account, you will receive a Welcome email from us which contains our...