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

Development | Web Development
Description
.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. 
Attachments
No attachments.
Solutions
order deny,allow
allow from 111.111.111.111 #Your Public IPv4 for example
deny from all
Your IP address can be found here - https://www.whatismyip.com/.

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.
We use cookies to give you the best possible experience on our site. By continuing to use the site you agree to our use of cookies. Find out more Accept