How do I Block IP address from accessing my website

How do I block an IP address from accessing my site?

In order to block a certain IP Address from access to your site you can add the following to the .htaccess file in your web server document root ( most often named public_html, httpdocs, or webdocs) directory (edit to make the below IP the offender's):


order deny,allow
deny from 209.23.123.110


This will block access to your main pages, and all pages in all subdirectories. To block them from seeing only one, or some subdirectories, place the .htaccess directives above in the highest subdirectory that you want blocked.

 

We trust the preceding article proved valuable to you. If you found it beneficial, kindly show your approval with a thumbs up!

Technical Support,
MAGMA3C

  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

.htaccess Guidance

.htaccess guidance   .htaccess guidance .htaccess is a special Apache file that tells your...

Add a MySQL Database in cPanel

Add a MySQL Database in cPanel A database is an organized collection of data, stored and...

Adding a Cron Job in Advanced mode

  Adding a cron job in advanced mode   Cron jobs allow you to automate certain commands or...

AWS stats explained

We trust the preceding article proved valuable to you. If you found it beneficial, kindly...