Introduction
In today's article, I will guide you, How to Block only
One Visitor in your website via .htaccess file. So let's get started.
v Firstly go to your cPanel account, and then login.
v After that find out the "Files" section, and then here you can see
the "File Manager" option.
v Simply click on it, and then go inside to the public_HTML. So
now here you need to edit the ".htaccess" file. Basically, this is a Hidden file.
So for seeing it, simply click on "settings" option, and then select "Show Hidden Files" option, and then click on "save" button.
v So now here you can see all hidden files will appear.
v Now select the ".htaccess" file and then right click on it. So
now here you can see the Edit option, So simply click on it, and then again
click on "edit" button.
v Enter the following code inside the file, and don't
forget to replace IP address of that Visitor which you want to block.
order
deny,allow
deny
from IP_Address
v Once you're done, then click on this “Save Changes” button, and
then your Visitor is successfully blocked.
Search
Popular Posts
How to Fix a Slow Loading Website Using the PHP X-Ray tool in cPanel
14/11/2022
How to install SitePad website builder premium themes in your site for free
14/11/2022
How to Scan your cPanel site from malware using cPGuard and imunify360
14/11/2022
Building and Deploying a Docker Image and Container
20/12/2023