Block an IP address

Block an IP address from accessing my site?

In order to Block an 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):

 block ip address
block ip address

1-deny from
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

2-How to Block an IP Address
  1. Login to MyKinsta and drill down to your individual site.
  2. On the left-hand side click on the “IP Deny” tool. You can add IP addresses here that you want to block (deny) from accessing your site. …
  3. Click on “Add IP Addresses.” Add IP addresses.
  4. Insert the IPs one per line and click on “Add.” Deny IP addresses.

Leave a Reply

Your email address will not be published. Required fields are marked *