Password protecting test site

Hi I wanted to password protect a test site I have been making to show to selected people. I found this tutorial using PHP which seems pretty straightforward.
http://www.zubrag.com/scripts/password-protect.php
The one problem is it says It will show you protection code to include into your pages. "Sample protection code would look like this (yours will be different): <?php include("/home/users/htdocs/security/password_protect.php"); ?>
Add that line of code to each php page you would like to protect at the very beginning of the page source (it must be the first line)." Now the problem is that my page is html based, can I add a token PHP page to my index page that just has that bit of code in to password protect it and how would I add the PHP page?
Thanks in advance

Hi
Try the htaccess generator for dreamweaver extension - http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1698154.
Check with your server provider to ascertain you type of server you are using as this requires Apache, but similar code is available for IIS.
The htaccess file is a simple file that you upload to your server and will 'point' to the folder you wish to protect.
PZ

Similar Messages

  • How to password protect a site that is NOT published to .mac?

    Hi There,
    I was wondering if anyone has got a workaround for this in iWeb. I would like to password protect a site but am not publishing it to .mac. Is there a piece of code you can stick into the HTML manually to do this?
    Thanks!
    s

    I am answering my own question! A friend tipped me off — your hosting company may offer password protection. That was the case for me. I went into the site settings and was able to set up a password for the entire site or only certain directories. I hope this helps someone!

  • Password protected iWeb sites - problem with login

    This is an FYI regarding a problem I recently encountered. Neither MobileMe, nor Apple tech support or specialists were able to resolve it, but I finally figured it out.
    I created a company website for my client, including secondary websites that were password protected in order for her clients to download support materials for her classes. The passwords worked fine last night, but this morning we could not login with the setup passwords. Even when we changed them and tried to re-upload the entire site, we could not. I don't know specifically what changed, but we went through a plethora of solutions over many hours, but to no avail.
    In the end, it appears that how we setup the domain was where the problem existed. We have our own domain through Netfirms, which we set up to use in MobileMe as per the instructions. In Netfirms however, when you log into version 8, it does not give you the option to change the CNAME, as MobileMe states needs to be done. Instead I had set up the domain to forward to our "web.me.com/company" site. This was the problem.
    To correct this, I turned off the url forwarding and logged out of Netfirms. Then logged back in, but into version 6 of the control panel. From here I was able to setup the CNAME as web.me.com. And ta-da, once it updated on the server the entire site and all password protected areas are working as needed.
    Phew.

    To password protect a site, folder or page when using a server other than MobileMe you need to either enable this in your control panel or do it using a .htaccess file.
    The server side script is the most secure way to do it. There are javascripts that you can use but they are less secure.....
    http://www.javascriptkit.com/script/cutindex6.shtml
    Doing it via the control panel is easier but, if you want to go the htaccess route, you can generate it online here....
    http://tools.dynamicdrive.com/password/

  • Saving PDF files in a password protected FTP site

    Hi Experts,
    I have an Adobe Form which I want to save in a Password protected FTP site.
    I have written the following code in the submit button
    TYPE = HTTP Submit
    URL = ftp://username:password@host/
    But once the submit is clicked, I can see ONLY the display of the files in this FTP Server.
    My requirement is, I want this PDF file saved in the FTP server.
    How do I achieve this??
    Thanks
    KR

    If you are using the Adobe Reader plug-ins in Safari, then the only functional way to save the PDF locally (without damage) is to use the save functionality that Adobe (not Safari Save As…, Export, or Print > PDF) provides. These examples were captured on OS X 10.9.5. Safari 7.1.2. Adobe Reader 11.0.10.
    Your first link will offer a roll over Adobe toolbar near the bottom-center of your displayed PDF document. Use the Save icon on the far left.
    The second link produces the Adobe sub-toolbar with the Save icon.

  • Password protected iWeb sites

    Hi.
    I want to know how to make websites password protected on iWeb. However, I do not have, nor want to invest in MobileMe, so is there any FREE service that does this. Thank you!

    To password protect a site, folder or page when using a server other than MobileMe you need to either enable this in your control panel or do it using a .htaccess file.
    The server side script is the most secure way to do it. There are javascripts that you can use but they are less secure.....
    http://www.javascriptkit.com/script/cutindex6.shtml
    Doing it via the control panel is easier but, if you want to go the htaccess route, you can generate it online here....
    http://tools.dynamicdrive.com/password/

  • Password protect custom sites within iWeb/Sites

    I have a custom sites within iWeb/Sites in a separate folder. Is it possible to password protect this site? Thank you.

    No.
    OT

  • Password protecting my site iwth jsp??

    is it possible to password protect my site iwth jsp?? if so please send me the code

    Of course it is possible, just take a look at this site, and since it is open source, you can see how it is done.
    http://www.jivesoftware.com/index.jsp

  • Password protected iweb site hosted on godaddy

    Hi,
    I am using iweb 08, and i host with godaddy.
    Is there any way of making the password function from iweb work with godaddy?
    so far i can't get it to work.
    Thanks
    Dave

    Dave:
    That's one of the features of iWeb that are not supported by non Mac servers:
    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Blog RSS Subscription
    ◼ Hit counter
    ◼ Enhanced slideshows
    There are methods using php I believe but, again, have no experience with them. One of these sites may be what you're looking for.
    OT
    Message was edited by: Old Toad

  • With Safari, No search results in password protected iWeb site on MobileMe

    Hi,
    I'm publishing my iWeb site to my ME.COM account.
    I have the site password protected as offered in iWeb.
    But when the site is password protected and I'm accessing the site with Safari the search with the search field in the site does not produce any results.
    Only the message:
    "Your search did not produce any results."
    If I use FireFox everything works fine and the search provides the expected results.
    Looks like there is a bug in Safari.
    Thanks and Regards,
    JO

    ok, is working, now.

  • Link to other published web folder from within password protected iWeb site

    I realise that you cannot password protect an iWeb site if it contains a link to an external page / file. However, I have a complex genealogy site that I had previously published to another site. I directly copied this folder to the iWeb directory alongside the folder for the protected site published from iWeb. I have tried all sorts of link URLs on the protected site page, trying to link to the genealogy index.html file. iWeb refuses to allow password protection or even point correctly to the site.
    Does anyone know how to create a suitable link to a site folder created elsewhere?

    I have a password protected site with a page that has a link to an ordinary homepage.mac.com page, with no problems. Could you provide more details on what is not working for you? Maybe putting your geneology folder in iDisk/Sites and linking to that would help?

  • How to password protect iWeb09 Site

    I have my iWeb Site published by FTP to my domain, is it possible to password protect the whole site in the same way you can when using MobileMe?

    This setting has nothing to do with managing domains.
    Your hosting service must have provided you with some means of managing your files on the server. Usually this would be Web Shell which is now in version 4.4.3.
    Open your files in Web Shell, select those you want and then click the "protect" button under settings.

  • Password Protect web site

    I currently maintain a web site in conjunction with another colleague
    We both deal with seperate topics within the site and consequently have our own allocated files and folders
    Is it possible to password protect my own data so that my colleague cannot gain access to my work and subsequently amend my publish files.
    Nothing sinister in this, but as a beginner he has not yet fully mastered DW and i want to protect my work
    Is this feasible
    Using DW4

    You can use file check in/check out so you don't accidentally work on the same files at the same time, but there isn't anything within DW that would allow you to block him from accessing the files if you were not actively using them.

  • Password protecting a site?

    Hi,
    I was wondering how I can password protect my non MobileMe website. I tried using iTweak, but after uploading the files, it always came back and told me I had a wrong username+password combination. Is there either another way to do this or some way to fix it?
    Thanks already!
    -Jotade

    This topic discusses that: http://discussions.apple.com/thread.jspa?threadID=2324696&tstart=125
    OT

  • Windows XP User Can't Log in to Password Protected iWeb Site

    Does anyone have advice for this problem? I have consistently been able to access my .Mac account from all PC browsers I can think of from my work computer (MSN, IE, Opera, Firefox). My mother-in-law uses a PC as well and she's had no trouble logging in. My wife uses a Dell at work and she's never had an issue.
    An Aunt, however, cannot seem to get past the Username and Password identification screen when she tries to log in on a Windows XP system in Internet Explorer. Everytime she enters the correct User and Pass (and also in the right case, I checked), the pop-up just reloads. My understanding is that she has tried to do it multiple times in a row and still nothing.
    Any takers? I am stumped. My best guess is something in the IE options for internet security is checked or unchecked. She is at a work that will not allow her to download and run other browsers, so it has to be IE.
    If anyone knows the solution to this, I would be pretty grateful.
    Thanks!

    I have the same problem here with a friend, that cannot access to the site and it works on my Windows XP-PC with IE 7 and Firefox 2. Really strange.

  • Password Protected Sites

    Does contribute allow for HTTP authentication?
    We work on password protected development sites first and then publish. The password protected sites are what we would be accessing using Contribute for content editing.  THanks.
    Beth

    Try closing Safari and your other browsers, relaunch them and try accessing again. If you still can try logging out of MobileMe in the System/MobileMe preference pane and try again. It may be that you have access because you're logged in. Just a guess.
    It shouldn't have anything do to with the iWeb version. Try creating a test site, protect it and publish. Now try accessing again. If you can post the site's URL here and we'll see if we can also.
    OT

Maybe you are looking for