Like sailor said, you can use an htaccess file to keep the username and password in. But I'm sure we've all seen sites like that with username and passwords listed on crack sites.
Another approach would be to keep your login info in a database such as mySQL. Then using PHP, JSP, ASP, something like that, you could requre them to enter a username and password on the main page. Check this against the values in the database and if they match, you're in. Much harder to crack this than the htaccess file.
|