deny from all
allow from 192.168.1.1
then save and upload the file. You are done.
In this example you have to change 192.168.1.1 with your IP address or the IP address you are willing to be able to visit the site. You can find out what is your IP from here
P.S. .htaccess is recursive! That means all rules will apply for all subfolders!