Singapore & Australia # 1 for Web Hosting & Domains
SG: +65 6914-7888   AU: 1300-863-436 Asset 1colo Help
Vodien Logo
  1. Home
  2. Knowledge Base
  3. Web Hosting
  4. How to Make My Website Inaccessible to All Visitors

How to Make My Website Inaccessible to All Visitors

While doing updates to your website, you may want your site temporarily unavailable to your clients. There are two ways to make your website inaccessible for your clients except for yourself.

via .htaccess

You can add a code to your .htaccess file via your File Manager:

Step 1. Open a browser and navigate to this link: https://whatismyipaddress.com/ to get your IP Address.

Step 2. Once you get the IP Address, open a notepad, copy and save the IP Address from there.
Step 3. Log in to your cPanel account: yourdomain.com/cpanel. In case you forgot your log in credentials, click the link on how to update your cPanel password.
Step 4. Navigate your File Manager, make sure to select ‘Show hidden files’ and go to public_html folder.
Step 5. Create a file and name it as ‘.htaccess’, if this is not yet available, and add the code below:

##### Order deny,allow
Deny from all
Allow from 180.0.0.0 #####

Once you’re done, save the codes you’ve added on the file and clear your browser’s cache. All your visitors won’t able to view your website except you, unless the codes are removed.

via IP Blocker

The IP Blocker interface allows you to allow you to block access to your site for one or more IP Addresses or fully qualified domain names (FQDNs). Below are the steps on how to block IP from access your site:

Step 1. Log in to the cPanel using this link format: http://yourdomain.com/cpanel/
Replace yourdomain.com with the Main Domain Name connected to your hosting.
Step 2. Click IP Blocker under Security panel.

Step 3. Enter the IP Address or range in the IP Address or Domain box. You can enter IP Address in any of the following formats:

  • Single IP address (for example,180.168.0.1).
  • Range (for example, 180.168.0.1-180.168.0.99).
  • Implied range (for example, 180.168.0.1-99).
  • CIDR format (for example, 180.168.0.1/99).
  • Implied IP address (for example, 180.*.*.*).
Important: 180. as an implied IP address, if you enter 180., the system blocks access to any IP address that begins with 180.

Step 4. Click Add to save the changes.

If you have further queries, please don’t hesitate to contact our 24/7 Singapore or Australia Support Team.

(Visited 752 times, 1 visits today)
Updated on November 24, 2022

Was this article helpful?

Related Articles