English 中文(简体)
Password protect a simple web site
原标题:

I ve got an HTML-only website (with a bit of inconsequential javascript). The static pages are generated from a photo-blogging program that I created. There are hundreds of pages and thousands of pictures.

I m considering adding very basic security to the site (as a marginal impediment to someone who s casually attempting to access the site). I could probably live with a single password for everyone, although I suppose multiple username/password combos wouldn t hurt. (I don t want this this to become an administrative hassle.)

Doing a quick search, I ve discovered that there are myriad ways to implement authentication, but most seem to be overkill for my needs. Because so many people disable javascript, I don t want to use client-side authentication. The site is hosted with GoDaddy on a Windows server, so I have some control over IIS settings. I ve also got access to ASP.NET, MySQL, SQL Server, etc.

Since I generate the pages, it s no big deal to change them all to a new standard approach. Any suggestions for a simple approach?

最佳回答

Sounds like basic HTTP authentication would fit the job perfectly.

Here s the MSDN article on setting up HTTP Basic Authentication on IIS 6.0.

(Though sadly, it s a lot more annoying to set up on IIS than it would be on Apache.)

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签