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
- Open your browser and navigate to this link https://quape.com/ip (URL link) to see your ip address.
- Once you have identified your IP address, open a notepad, copy and save it there. We will need this IP address in future.
- Login to your cPanel account ( yourdomain.com/cpanel ).
- Navigate to File Manger and remember to click show hidden files and go to public_html folder.
- 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.