Password-Protect iWeb Sites

11 May '08 Filed under Tutorials, iTweak, iWeb -

25 Comments

  1. Pedro Da Silba posted:

    Was a bit confuse but then work great! Thanks

  2. trixit posted:

    Great article Max! It shows that you really care about iTweak.

    My question would be how to protect certain part of your site. Like, lets say, one page or several pages.

  3. Max Karreth posted:

    Trixit,

    Thats probably gonna get a bit difficult because you’d end up writing the files yourself - so iTweak won’t be any use to you. :-D
    Two options here, either you put those pages you want to protect into a separate site folder OR you drop me mail and ill show you how to protect individual pages. :-D
    Max

  4. trixit posted:

    I was thinking about doing it through a separate folder. I don’t need the functionality now… I was just curious.

  5. Chris posted:

    Hi! great little app, but i can’t quite get it to work… doing everything for pwd protection to protect one single site folder. It all seems to work but then it doesn’t accept the password I’ve entered. I’ve tried different user/passwords, and generated the crypted password using different generators on different sites. Any help much appreciated.

    cheers

    c

  6. Chris posted:

    Hi Max,

    Is this a problem that can’t be worked around?

    thanks

    c

  7. Max Karreth posted:

    Chris,

    Sorry for not replying to your comment in the first place, I must have skipped it. Would you mind sending me an email with the password you want to use and the crypted version so I can see what is wrong.
    Also, if you upload your site to your server and then activate (under “view” in most cases”) to show invisible files, you see a file named .htaccess and .htpasswd. Rename both to pps.htacess and pps.htpasswd and send them to me as well. The email address is mail at guimkie dot com.

    Thanks,

    Max

  8. Nathaniel posted:

    I followed all of the steps in the tutorial, but I am still having no luck. I went through the encryption process and absolute path. I feel that I went wrong in the absolute path step because the extension was d:\\hosting…..then my website information. Could this be a correct address. I also need help with just protecting one web page on the site. Any feedback would be extremely helpful. Thanks.

    -Nathaniel

  9. Max Karreth posted:

    Nathaniel,

    Do you mind sending me a screenshot of this PHP file where you get the path? You can use this email: mail@@@guimkie.com (delete two of the @s - just a spam measure).

    Regards,

    Max

  10. Andy posted:

    Hi, I’m having trouble getting this app to work as well. And I think I’m missing a step.

    Do you need to publish the iWeb site to its local folder after any of these steps? Can I copy limited files from the published folder to the server or does the whole site need to be re-uploaded?

    After all of the above steps I’m seeing the invisible .htaccess files in my published folder and uploading them to my server (Using Fetch) and was hoping that this would be sufficient. But I’m not sure what other files iTweak is affecting that need to be replaced through the ftp connection.

    I also copied the .php file up to the server to get the Script_Filename address.

    I’m using iWeb 08 (2.0.3) and iTweak (1.4.5) Fetch (5.0.2) Safari and Firefox, cleaning cache for testing, and the Finder to access the invisible files and navigate to the rest of the published folder. Mac OSX 10.4.11

    My server definitely handles .htaccess protection.

    Thank you for any light can you shed on this.

    - A

  11. Andy posted:

    ok, I think I got it working. Sorry for the long comment. But like Chris above, the log-in box will not accept the password I’m using. Any fixes?

  12. Max Karreth posted:

    Andy,

    Yes, if you see the invisible files with Fetch, then go ahead and only upload them. Its just that most people dont see the invisible files and so you have to upload the whole folder. Because you see them, go ahead and upload only the invisible files and all the things you wish.

    For the password. Are you sure you have copied the correct encrypted password? Are you also sure that the path in the htaccess file is correct? Drop me a mail if you have further problems.

    Regards,

    Max

  13. brian posted:

    I had no luck trying to get Comcast to tell me the absolute path to the .htpaaswd file. Any advice?

  14. Max Karreth posted:

    Brian,

    They did not tell you the path? I would drop them a call and tell them you need that thing ASAP and since your paying them, you should be at least informed about your path.
    Else, just use the file to get the path.

    Max

  15. Mahbod posted:

    Hi Max,

    I have the same problem as Chris. The verification comes up but it doesn’t go through; meaning it doesn’t accept the password/username. I have checked and rechecked and redid the whole process thrice and I even tried choosing different parts of the published folder but still no success. If you have found an answer for Chris, maybe that would help me also. I’d appreciate any help.

    thanks.mahbod.

  16. David posted:

    If I already have a .htaccess file on my sever, used for blocking access to a string of IP’s, is there something I can add to this file to allow password protecting or will the script you wrote add or rewrite what I already have? Thanks for you help and knowledge.

    David

  17. Max Karreth posted:

    David,

    iTweak will directly always create the new file and not add something to an existing one. So what you would have to do is manually edit your htaccess file to include all the contents of the htaccess file that iTweak has made.

    Regards,

    MAx

  18. Peter posted:

    Regarding Setting a Password:
    I followed the iTweak path… and now my site shows it is password protected… BUT whe I enter what I think is the correct password, it does not accept it.

    Is the user name and password I plug into KxS encrypter up to me, or does it have to correspond to some other info (like name of wesite, or my mac permissions etc.)…

    Anyone have any ideas… ironic that my site is now SO safe that even I can’t get in.
    I would appreciate any ideas
    Peter

  19. Max Karreth posted:

    Peter,

    Drop me a email about it. Thanks.

    Max

  20. joemed posted:

    Max you rock,
    All the things is try to do with iWeb bring me to you.
    I do need to create one or more individual pages with a password or allow someone to download files. Getting to a page with the files seamed the easiest.

    Please reply
    I use .mac or mobileme account.

    Thanks in advance
    Joe

  21. Max Karreth posted:

    Joe,

    Well what you can do is protect a certain site. You cannot protect individual pages. With iTweak, you can’t do that either and since you are on .Mac, my technique won’t work in any case.

    Though, what I suggest is to simply create an extra site called “Downloads” or something. Protect that one. This is where people can then access the one page (which is inside the downloads site). So on and so forth…

    Max

  22. joemed posted:

    What a simple solution. I have not concurred all the options for iWeb. I still do not know the differences of 2 (or more) Sites?

    Thanks for the reply

    Joe

  23. Max Karreth posted:

    Joe,

    If you click on the “File” menu in iWeb, you can choose to add a new “page” or a new “site.” That allows you to have two sites. The difference with two sites is that they are separate and are accessible via two different addresses. For example:

    http://web.mac.com/site1/Home.html
    http://web.mac.com/site2/Home.html

    Max

  24. Jori posted:

    Hello! I am trying to password protect a site I’ve done in iWeb, and am not having any luck. Do you happen to know of any issues with GoDaddy? I’m using their FTP server, and am also wondering if the invisible PHP files aren’t getting uploaded also. Thanks for your help!

  25. Max Karreth posted:

    No, GoDaddy should be workin 100% fine. With what application are you uploading the stuff? Cyberduck? Coda? Coda and Cyberduck both offer a feature that allows you to see the invisible files. In most cases it is under the “View” menu item.
    Did you do the tutorial with iTweak 1.4.6? Is the absolute path 100% correct?

    Regards,

    Max

Post a comment: