Login to your 000webhost.com account
Hit Settings then Security on the menu
Browse down to Manage Password Protection
Now click add
This menu below should appear choose the directory to protect
In my case the folder within public_html is called "premium-members-area"
I have chose superadmin and a password to login to it with.
The directory should now appear as protected
If anyone tries to access premium-members-area on your website then they'll get the login window.
Login using the details you created
Now the page will load and all contents will be displayed or the page will show if you've got one uploaded