Visitor IP Banning The below form generates the appropriate .htaccess code to ban visitor(s) from your site based on their IP address. You can enter a partial IP address (see "Valid Entries" below) to catch all IP addresses that contain the partial IP within it. Separate each IP address with a line break, so each IP occupies its own line. Enter User IPs to ban, each separated by a line break: 42.1