How to make your website inaccessible to all visitors except yourself? You may want to do it for security purposes. Follow the instructions below.

Make your website inaccessible to all visitors except yourself

  1. Open your browser and navigate to this link https://quape.com/ip (URL link) to see your ip address.
  2. Once you have identified your IP address, open a notepad, copy and save it there. We will need this IP address in future.
  3. Login to your cPanel account ( yourdomain.com/cpanel ).
  4. Navigate to File Manger and remember to click show hidden files and go to public_html folder.
  5. Create a file and name it .htaccess (if it’s not present) and input the following codes inside your htaccess file.

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

Please do take note that the ip address 112.198.255.122 is just an example.

Once done, save it and clear your browser’s cache.

After that, all your visitors won’t able to view your website except yourself, unless you remove the codes above.

If you need assistance or have any further enquiries, feel free to contact our support team.

Was this answer helpful? 0 Users Found This Useful (1 Votes)