Blocking an IP


I want to block a couple of specific IP’s from my site. So I went to the k base and got directions on how to create an htaccess file and what to put into it. block

I copied and pasted what it said to use and then put in the IP’s I want to block behind the deny command. Then I chose to save it. I got an error telling me I hadn’t assigned a password. So I assigned a password. But then anyone who tried to go to my site got asked for a password!! So why is this asking me to assign a password? I don’t need to assign a password for an IP block…