Hi I am starting to publish my first website. It is a bit personal, just for the family with a few photos and stuff like that. Is there a code that will ask you for a password and a username, so that only thos with the username and password will be allowed in? Or any software that will do the job?
Find out if your host control panel offers Password Protected folders - most paid for hosts do. Much simpler and more secure than pasted scripts etc. Some free hosts do not allow the use of htacess files which would be used to protect pages.
from a personal standpoint, if I'm not storing any sensitive data I would opt for htaccess as it is supported my most *nix hosts. If your host supports php/apache/mysql and you only want to show pics then why not use a gallery script? There are many out there that are simple to setup. Two of my favorites are: