Solution: How to restrict access to your website with .htaccess

Development | Web Development
.htaccess is a configuration file used by the Apache web server. .htaccess rules override global settings for the directory in which the file is placed. You may find that .htaccess files are created automatically on your server, when you install popular web applications like WordPress, Drupal and Magento. However, if one does not exist, it can be easily created in a text editor and uploaded to your server. 
No attachments.
order deny,allow
allow from #Your Public IPv4 for example
deny from all
Your IP address can be found here -

on November 05th, 2018 (9:29 pm)
What masters said
You must sign in to comment!!
All comments
This solution has not been commented yet.