The .htaccess file is to control access to server. Just you have to know about it.
The .htaccess can be put under any folder which you wanted to control access permissions.
There should be a .htaccess file in public_html. Even though you delete it, an empty file will be created. Don't...