VB-like security popup on website? ...like when you try to access an FTP through a browser?

xxxInfidelxxx

Member
Feb 19, 2006
187
1
0
We've all seen those popup windows prompting us for login: password when hitting a FTP server using IE or other browsers. I've seen them added to some sites, too. I would like to gt the code to add to my default home page that instantly prompts for a passwords, then have it link to, say, default1, which will be the home page that it's development.

Anyone know where I can find this code? I've search quite a bit and just found regular asp-type login controls, but rather just have a popup prompt for now...should be just a few lines.

Does any of this make sense? :)
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
If i understand you correctly, what you want really isnt done by code. It's the standard authentication in IIS and the .htaccess file in apache. you can use a program called IISPassword to do the same easily on an IIS server (Assuming you have control of IIS)
 

clamum

Lifer
Feb 13, 2003
26,252
403
126
I'm not sure how to do it manually (I'm guessing it's not too hard), but you should be able to set up HTTP authentication on the folder you wish to protect using whatever hosting you go through. I have web hosting with a cPanel admin, so in that I can go to Password Protect Directory, then just have to give it a username and password.