• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Apache .htaccess integrated into a page

Stormlifter

2[H]4U
Joined
Oct 19, 2002
Messages
2,968
I know how to do the apache .htaccess stuff but I'm wondering how I could integrate that into an html page so it's not that nasty ugly pop up box to gain access. I tried googling but have no clue how to describe what I'm looking for so it's hard.

Thanks.
 
You can't. If you have a custom login page, it's not HTTP authentication anymore and Apache isn't responsible for that. You'd have to write something in your programming language of choice, and then include the authentication code on every page.
 
You can't. If you have a custom login page, it's not HTTP authentication anymore and Apache isn't responsible for that. You'd have to write something in your programming language of choice, and then include the authentication code on every page.

Thanks.
 
Quick question. If I was using say PHP. how would I make it actually protect the files. I can see how it would stop a simple user, but since PHP isn't really serving any content someone could just go around it. I know how to do this with Django, but I haven't had to write this simple of a password protected area before and am hoping there is a real easy way.
Put the content in a directory outside the web root, or in one secured with .htaccess, then include it from PHP.
 
Back
Top