Categories
aapanel
1
Anti -spam Policy
2
Backup/Restore
4
cPanel - Control Panel
37
Databases
12
Dedicated Server
7
DNS - Nameserver
7
Domain Management
10
domainsReseller
3
Email
11
Frequently Asked Questions
3
FTP
9
GPU
13
guides | GEFORCE
3
How to Reinstall OS On Client side
1
Installing a Control Panel
9
KVM VPS Server
13
Mail Filters & SPAM
8
Mobile
11
Others
14
PTR update
1
Reinstall the Operating System
1
Security
10
SiteWorx (Control Panel)
60
Softaculous
79
SolusVM
19
SSL
6
TCP and UDP
1
Ticket
1
VCCLDC-Data Center
1
What is 'cloud computing'?
4
Windows Server
10
Wordpress
19
Categories
Tag Cloud
.htaccess
.us
addon domain
amd
amd ryzen
Anti-spam
Audio
Audio drivers
bandwidth
bare metal
best offer on hosting
cache
cheetsheet
configure network
core ftp
CPanel
cpanel hosting
Data center location
debian
dedicated gpu server
dedicated server
disk mirroring
DNS
DNS issue
error 500
FAQ
File extension
Firewall
Free BSD
ftp
gpu
gpu server
how to order
IPMI
IPV4
ipv6
KVM
KVM Vps
Linux
LINUX GUIDES
linux server
mysql
Nameserver
Networking
No Sound
nvidia
ONLY_FULL_GROUP_BY
OpenStack
openvswitch
password
php
php extension
policy
Port 25 unblock using EXIM4
port22
Port25
private cloud
Private network
Protocol
raid
recovery
reseller offers
rewrite rules
root
root user
secure
security
Sendy
sendy mysql error
Server
server internel error
Setup Exim
software raid
ssh
ssl offers
subdomain
subnet
tcp
Ticket
Ubuntu
udp
vccl hosting offers
vccl reseller hosting
virtulization
VLAN
vsw
vswitch
WHM
WINDOWS GUIDES
windows server
wordpress error
YUM
How to restrict directory access by IP address? Print
- 0
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.
Was this answer helpful?
Related Articles
How to protect a folder with username and password in cPanel?
You can lock a directory with password by using the cPanel "Password Protected Directories"...
How to blacklist an IP Address to deny it access to your website?
You can lock directory with a password by using cPanel "Password Protected Directories" option.1....
How to protect your website's images from an external website?
External Website can use < img /> tag to display an image from your site somewhere else on...
How to ban any IP Address via .htaccess?
If someone is trying to hack your website or you want to block their IP Address, you can add this...
How to disable directory browsing using .htaccess?
For security purposes, we recommend that you to disable directory browsing on your website so no...
Tag Cloud
.htaccess
.us
addon domain
amd
amd ryzen
Anti-spam
Audio
Audio drivers
bandwidth
bare metal
best offer on hosting
cache
cheetsheet
configure network
core ftp
CPanel
cpanel hosting
Data center location
debian
dedicated gpu server
dedicated server
disk mirroring
DNS
DNS issue
error 500
FAQ
File extension
Firewall
Free BSD
ftp
gpu
gpu server
how to order
IPMI
IPV4
ipv6
KVM
KVM Vps
Linux
LINUX GUIDES
linux server
mysql
Nameserver
Networking
No Sound
nvidia
ONLY_FULL_GROUP_BY
OpenStack
openvswitch
password
php
php extension
policy
Port 25 unblock using EXIM4
port22
Port25
private cloud
Private network
Protocol
raid
recovery
reseller offers
rewrite rules
root
root user
secure
security
Sendy
sendy mysql error
Server
server internel error
Setup Exim
software raid
ssh
ssl offers
subdomain
subnet
tcp
Ticket
Ubuntu
udp
vccl hosting offers
vccl reseller hosting
virtulization
VLAN
vsw
vswitch
WHM
WINDOWS GUIDES
windows server
wordpress error
YUM