02.06.11
Opening up to the world
We have an internal php app that we use everyday. I wanted to make it available to our staff when they are out and about, but wanted to add a little extra security. We now run on Apache after having run on IIS for years, so I reckoned a .htaccess file was the way to go, but I only wanted the user to be asked for an extra password if they were accessing it externally.
I asked a question on stackoverflow.com (which is for programming questions what google is for search), which lead me to the my answer on this site.