Back to website
Login
Home
Login
Register
Back to website
There was a problem loading the comments.
How to enable access to website only from specified IP address?
Support Portal
»
Knowledgebase
» Viewing Article
Print
26 April 2009 12:32 AM
.htaccess
Create a file named .htaccess in your public_html folder and add the following lines:
+-+-+-+-+-+-+-+-+
order deny,allow
deny from all
allow from IP
allow from IP
allow from IP
+-+-+-+-+-+-+-+-+
Then replace IP with your IP address or IP address from which you want to allow access.
Share via
Did you find this article useful?
Related Articles
Server blocked my IP Address on firewall when I attempted to access WordPress admin area
Dedicated IP address
Domain Name: Unable to update WHOIS contact information as existing WHOIS email address is not-working
Comments
Add Comment
Replying to
Cancel
Self-Hosted Help Desk Software by
SupportPal
Categories
6
Billing & Renewal
22
Domain names
20
FAQs
7
Tutorials
177
Web hosting
30
— Programming Languages
1
—— ASP
6
—— ASP.NET
13
—— PHP
6
——— PHP Environment
8
—— .htaccess
1
—— XML
11
— Scripts & Programs
69
— Email
34
—— Errors
9
—— Email How To
9
— Database
2
—— Database tools
4
—— MySQL
5
—— MS SQL
27
— Linux
5
—— Linux Errors
10
—— How to (Shared hosting)
24
— Windows
5
—— Microsoft IIS7
1
—— WebsitePanel
2
— Memcached
22
Servers Dedicated & VPS
4
— KVM VPS
Tags
0x800408fc
0x80042108
0X8004210A
0X800CCC19
0x800CCC1A
403
5.7.1
500
501
503
508
550
553
abuse
additional support contact
Android
Backup
bitbucket.org
bounce
calendar
cancel
cPanel
cron
crontab
CSR
Customer Portal
Diagnostic
Dkim
DNS
DNS Host Management
DNS Record
DNS record syntax
domain
domain name registration
domain name transfer
domain name whois
Drupal
Email
FAQ
FTP
git
Gmail
how to
iOS
Joomla
Mac
migration
MySQL
OSX
outlook
password
PENDING - PENDING REGISTRANT APPROVAL
PHP
preorder questions
redirect
Sender verify failed
setup
SMTP
spam
SSH
SSL
sync
temporary url
web development
whois modification
Windows
WordPress
wordpress toolkit deluxe
© Indichosts.net