Block IP Address: How do I block a visitor from viewing my Site? Blocking certain IP addresses from viewing your Website is one way to keep a person or group of people from viewing or accessing your Web Pages. IP blocking will restrict who can view your site. However, you can unintentionally end up blocking a group of people outside of your target group. Therefore IP blocking should generally be avoided if possible. For those that want to proceed, the following tutorial explains how to block an IP address using your .htaccess file.