Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Setting a website to be pasword protected

  • 27-11-2009 12:52PM
    #1
    Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭


    Hi,

    I've just deployed a pretty complex website for UAT and I'd like to password protect the Homepage. I don't mean a membership login, just some way of asking a vistitor to enter a password before letting them view the page. I'd imagine its a setting in the webhost control panel (I'm using Plesk). Any suggestions as to how I'd do this?

    Thanks in advance :)


Comments

  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Are you using Apache web server? - if so, you simply use htaccess files along with a passwd file. This is probably the most straight forward and secure way.


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    Webmonkey wrote: »
    Are you using Apache web server? - if so, you simply use htaccess files along with a passwd file. This is probably the most straight forward and secure way.

    Hi Webmonkey, thanks for the reply. No it's not Apache, it's running ASP.net


  • Registered Users, Registered Users 2 Posts: 6,652 ✭✭✭daymobrew


    Have you asked your hosting provider?
    It might be in their Knowledge Base.


  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    Is this any good?

    How do I password-protect a web page using ASP.NET?

    Edit - looks like that requires a custom page to be written.


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    daymobrew wrote: »
    Have you asked your hosting provider?
    It might be in their Knowledge Base.

    No not yet, said I'd ask here first as I'd get a reply faster!
    eoin wrote: »
    Is this any good?

    How do I password-protect a web page using ASP.NET?

    Edit - looks like that requires a custom page to be written.

    I'd rather avoid something like this, but if its the only way I guess I'll have to. Its surprising that ASP.net doesnt provide for something like this like PHP does


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Is this helpful? other than that you'll need find out how to password a virtual directory in IIS (which is what is running Asp.net for you). Your asp.net app runs in its own virtual directory. Dunno how to do that in plesk.


Advertisement