Recommended solution for password protecting a page for clients only

Hello,
I am using Dreamweaver CS6 on Mac (Mavericks).
I am building a new website for my business and I want to create a page where only my clients can access information after using an id and password that I provide them with. I do not want them to register online, etc. to access the page.
I was instructed to not use Dreamweaver's solution because it is outdated.
Can anyone provide me with advice on how to best do this? Use/Not use Dreamweaver functionality? Recommended extension?
Thanks,
Joshua

OK. If you have 50 to 100 clients and you want all of them to have different passwords, then the solutions recommended so far would be a pain to maintain.
I'm going to give you a solution that is easy to maintain. You will simply add new passwords to the "array" at the top of the script. This is of course not a secure method, but it will work for you. You can edit the design and text, etc. Simply paste all the code into a new file and call it "access.php.
This is not the method I use for password access. I use a method that handles hundreds of thousands of passwords easily, but it's far more complex. . .and secure. But I think this simple method should work for you:
<?php
// All the PHP code is in these first few lines at the top except a few lines that all begin with <?php  -- watch out about editing those lines.
//  this is where you create the set of passwords. Simply follow the pattern below to add new passwords to the list. Note that the final item does not have a trailing comma:
$passwords = array(
    "client1",
    "anotherclient",
    "lastclient"
?>
<!DOCTYPE HTML>
<html>
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<title>Reports</title>
<style type="text/css">
fieldset {
border:solid 10px #edebe4;
border-top:20px solid #edebe4;
width:700px;
margin-bottom:10px;
padding:20px;  
fieldset legend {
background-color:#edebe4;
color:#468cb7;
padding:0 5px 0 5px ;  
font-family: Verdana, Sans-serif;
a {
color:#468cb7;
font-family: Verdana, Sans-serif;
a:hover {
color:red;  
li {
font-family: Verdana, Sans-serif;
color:#666666;
font-size:13px;
margin-left:50px;  
</style>
</head>
<body class="body_admin">
<div id="admin_wrapper">
<div class="content" style="padding-left:50px;padding-bottom:25px">
<?php if (in_array($_POST['view'], $passwords)){ ?>
<h1>You have access!</h1>
<fieldset><legend>Choices</legend>
<h2>Do the following</h2>
<ul><li><a href='page.html'>A link (you will need to change link url)</li>
<li><a href='page.html'>Another link (you will need to change link url)</li>
  </ul>
  <p> </p><p>
</fieldset>
<?php } else { ?>
<h2 style='text-align:center'>Enter Password</h2><form action='access.php'  method='post'><p style='text-align:center'><input type = 'text' name='view' required style='margin-top:25px'/><br/><input type='submit' name='submit' value='SUBMIT' style='margin:15px'/></p></form>";
<?php } ?>
</div></div>
</body>
</html>

Similar Messages

  • Copy and paste Java script for password protecting a page?

    I need to password protect one page which I want to call my LOGIN page on a site I'm making in Dreamweaver CS5.5.  Unfortunately I know that the hosting company I'm using does not have the ability to allow me password a single directory on the server end to accomplish this (I know STRANGE)   .... SO
    I found some code online - java script that I can just copy and paste into the <head> section of my page.  This might be a silly question but is this a 'safe' way to do this?    (I don't need anything fancy and the people whom will be accessing this page will all have the SAME password, so I don't need a registration form or anything fancier...)
    Any thoughts?

    Ugg I totally knew you would all say that (because I already knew that would offer me the easiest solution), change hosts and now I'm embarrassed to say that YES I am paying for the hosting; BUT, I have to explain that I'm with this hosting company because way back when I started that site I needed something super user friendly because I was just learning.  Now I have learned more and have started to use Dreamweaver.  I just stayed with the same hosting and will use FTP to upload my new more updated site.  In the company's defense even though they do offer a way to FTP a site up, their main objective (I think) is to have a really easy way for people to get a site up without knowing anything about code or css or anything; and they operate under the assumption that MOST of their customers will be using their super easy software and not use FTP.  That is why I think they are limited to what they offer, at least that is my take on it.  My more recent sites do not use this company as I have tried to learn and 'move up'. 
    Anyway I guess if I don't want to switch hosting I still have the same problem.  Is it really that difficult to make something that has just one use ID and password which would be the same thing for every person?  Might be a great learning experience for me?
    Yep it might be time for me to switch hosting....  sigh.  What to do.....

  • How do I create a password protected entrance page for a muse site?

    I have created a site in Muse and the client wants it to be password protected for now....the usual Javascript entered between the head and body tags is not working.  Any ideas??

    PASSWORD PROTECTING A PAGE WITH A NICE BOX DESIGNED INTO YOUR PAGE
    FINALLY, I'VE FOUND AN ANSWER TO PASSWORDING A PAGE OR SECTION WITH ADOBE MUSE WITH GREAT SIMPLICITY AND ALLOWING YOU TO 'DESIGN' THE PASSWORD BOX INTO YOUR PAGE!!!
    Even better is that you don't HAVE to have username AND password (although you could if you wanted to), so just a simple PASSWORD box and enter button DESIGNED BY YOU WITHIN YOUR PAGE, rather than nasty popups etc.  Importantly, the password itself is NOT within the source code of your page either!!
    The solution is at Jotform.com. I believe you can do this with a FREE ACCOUNT, although it's SUCH a great service for Musers that I paid for a proper account.
    Before you do this, create a page on your site saying "Wrong Password. Please go away" or something to that effect. You'll need it for when they enter the wrong password.
    So, in Jotform, you just create a new form and:
    1. Drag on a password box (it's in the power tools section)
    2. Select it and go to Conditions
    3. Go to Change Thank You URL after submission
    4. Enter: If [name of your password box] field EQUALS TO [enter your password]
    5. In the "Then redirect to" box, enter the URL of your protected page and click save
    6. In the resulting box click "ADD A NEW CONDITION" and do the SAME as stets 3 to 5 but this time say NOT EQUALS TO" with your same password and in the "Then redirect to" box, enter the URL of your WRONG PASSWORD page and click save
    7. Embed the button on your page and you're done!!!
    If you want to mess about with the EXACT alignment of a right aligned button and text box, you can go to Preferences and in the box which allows you to add your own custom CSS, enter the following code and mess about with the values until it's perfect for you:
    .form-buttons-wrapper { padding-top:3px !important; }#id_2 {margin-left: -50px !important;}
    Here's an example, built in Muse: www.hileytv.com/about.html
    I hope this helps my fellow Musers!
    Marcus

  • Can I create a login/password protection in Muse for a HTML5 page or two?

    Hi,
    I'm new to Muse.  Can I create a login/password protection for
    one of my pages in Muse?
    thanks,

    PASSWORD PROTECTING A PAGE WITH A NICE BOX DESIGNED INTO YOUR PAGE
    FINALLY, I'VE FOUND AN ANSWER TO PASSWORDING A PAGE OR SECTION WITH ADOBE MUSE WITH GREAT SIMPLICITY AND ALLOWING YOU TO 'DESIGN' THE PASSWORD BOX INTO YOUR PAGE!!!
    Even better is that you don't HAVE to have username AND password (although you could if you wanted to), so just a simple PASSWORD box and enter button DESIGNED BY YOU WITHIN YOUR PAGE, rather than nasty popups etc.  Importantly, the password itself is NOT within the source code of your page either!!
    The solution is at Jotform.com. I believe you can do this with a FREE ACCOUNT, although it's SUCH a great service for Musers that I paid for a proper account.
    Before you do this, create a page on your site saying "Wrong Password. Please go away" or something to that effect. You'll need it for when they enter the wrong password.
    So, in Jotform, you just create a new form and:
    1. Drag on a password box (it's in the power tools section)
    2. Select it and go to Conditions
    3. Go to Change Thank You URL after submission
    4. Enter: If [name of your password box] field EQUALS TO [enter your password]
    5. In the "Then redirect to" box, enter the URL of your protected page and click save
    6. In the resulting box click "ADD A NEW CONDITION" and do the SAME as stets 3 to 5 but this time say NOT EQUALS TO" with your same password and in the "Then redirect to" box, enter the URL of your WRONG PASSWORD page and click save
    7. Embed the button on your page and you're done!!!
    If you want to mess about with the EXACT alignment of a right aligned button and text box, you can go to Preferences and in the box which allows you to add your own custom CSS, enter the following code and mess about with the values until it's perfect for you:
    .form-buttons-wrapper { padding-top:3px !important; }#id_2 {margin-left: -50px !important;}
    Here's an example, built in Muse: www.hileytv.com/about.html
    I hope this helps my fellow Musers!
    Marcus

  • What APPS are folks using for password protection?

    What are folks using for password protection?

    Miss Dee wrote:
    I'm looking for a way to save all my passwords to one place and then going to that place and pulling out the password I need. I have so many passwords, I just can't remember them. I thought that having the keychain would allow someone to sign in as me and then get the password.
    Does this make sense to you?
    Sorry, it isn't entirely clear to me, lets see if I understand correctly…
    The 'anyone can see my passwords when my account is logged in' issue is resolved by having a different password on the keychain compared to the user account, but it can make life frustrating to enter the password time after time, but security does conflict with convenience.
    Open up Keychain Access & take a look at an existing item in your login keychain - it should still ask for the keychain password to view the password for that item. By default that is the user account password.
    You can add extra passwords (and secure notes) to keychain if you have some that are not currently saved in the keychain. If any passwords are 'super secret' add them into another keychain & only unlock that when you need to do so, it will stop the OS using these automatically.

  • Does anyone have any suggestions for password protecting e-mail on the i pad?

    Does anyone have any suggestions for password protecting e-mail on the i pad?  Other people sometimes want to use my i pad but I don't want them to have access to my e-mail (which is on AOL)
    Presently you can password protect the whole i pad by having to put in a 4 digit code to open it, but once it's open whoever is using it has access to everything you have on it.

    Skydiver...that did it!!  I shut the mail app from automatically opening and now I can sign onto my AOL acct. through Safari!!  I had called Apple Care and had asked  different peope in Apple stores about this and no one but you had any suggestions!  YAY!!  Thanks!!!

  • Password protecting a pages doc

    Is there any way to password protect a pages doc in the latest version included in iWork 08?
    Thank you

    PDF Encryption with MacOS X is not high security. It is good enough to hide Christmas shopping lists, but I would not recommend it for bank data. To get high (128 bit) security one has to use Adobe Acrobat Pro.

  • How do i password protect a pages document?

    i have a document that i created in pages.  it is a worksheet for brides (we are wedding photographers).  i use to have the document set up so when i email the document to a client, they can read the questions/timeline but cannot edit my text.  i have cells in tables that they can answer in.  the cells were grey in color.  the way i did this was by maybe putting a password on the document (which left the area grey for them to respond in).  but i cannot remeber how i did this.  i'm wondering if anyone knows what i'm talking about and/or how to do it.

    Password protection prevents a document from being opened without the password.
    Locking an object (such as a text box or table) prevents the object of its contents from being altered without first unlocking the object. No password protection is available for this, though, so the recipient could easily unlock the object and change its content.
    At least one of Adobe's PDF applications offers the features you want—non-editable base document with fields that can be filled by the user, then saved and the file returned.
    Regards,
    Barry

  • Password protect some pages in an iweb site

    Just wondering if it is possible to password protect certain pages in an iweb site....
    I have a phtography site that i use for more professional pictures, however I wanted to upload personal pictures and only have certain people be able to access the pictures on certain pages?
    does anyone know if this can be done?
    for example and person who visits my site may see all my work on photo page 1 and 2, however only restricted persons can access pages 3?
    if anyone has any insight, it would be much appreciated.
    Thanks.

    You can only password protect a site. So you can add another site, move the pages you want to it and password protect it. Then add a text based link to the second site.
    An alternative could be to create an iPhoto Web gallery that's password protected and link to it from your site and have it open in an new window so it's easy to get back to your original site.
    OT

  • How to password protect a page or a file

    Hello All,
    Please help me,
    Can you please let me know how can i Password Protect a page (or) a file which i have created using the Oracle Portal, i am working on 10.1.2 Version.
    I would be thankful to you if you can provide me any sample URL's
    Regards,
    Kalyan Chandra M.

    Hi,
    Thanks you very much for the URL, i use .htaccess for protecting the files and folder for normal websites, but i am afraid to test it on Oracle Portal,
    I found another link http://www.javascriptkit.com/script/cut10.shtml
    where we can protect a page using simple JavaScript, this solves my requirement, but when i
    include the same function in <body onLoad()> then its not allowing me to Edit the page :(( .Can you help me out with a Tip...?
    Or Do you suggest me a better alternative...?

  • Password protecting certain pages?

    Hi —
    Does anyone know if it's possible to password protect all pages bar your homepage? I'd like to be able to do this whilst I'm trying to update my site but still wanted visitors to be able to access my home page.
    Thanks all.

    You can password protect certain pages only with iTweak.
    As stated by Wyodor , you also need to take a look at your host.
    The most common way is to protect by .htaccess if supported by your host
    Take a look at the tutorial of iTweak for password protect.
    Good luck

  • Password Protect Specific pages

    Is it at all possible to password protect certain pages. For example, I am a videographer and when my clients want to see their videos progress I would like them to be able to just go to my website, then be able to put in a password or something of the sort to then view another page that could have their video on it or what not. Is this at all possible with iweb?
    If not, what are ways I can still achieve this with iWeb and another program?

    sxeselis:
    I use iWebSites to manage multiple sites.. It lets me create multiple sites and multiple domain files.
    If you have multiple sites in one domain file here's the workflow I used to split them into individual site files with iWebSites. Be sure to make a backup copy of your Domain.sites files before starting the splitting process.
    This lets me edit several sites and only republish the one I want. That will make it easy for you to add unique user names and passwords for each site.
    Do you Twango?

  • Password protect individual page?

    Does iWeb '08 allow you password protect and individual page, rather than the whole site, as is the case in iWeb '06. This would be a nice addition.
    Thanks!
    Scott

    Home
    Index
    Protecting a site with a password
    If you publish your site to .Mac, you can require visitors to type a name and password to view your site. You can’t password protect individual pages.
    Passwords are case-sensitive and must use 6—20 characters. They can include any combination of letters, numbers, and symbols, but can’t include spaces.
    To create a password for a website:
    In the sidebar (on the left side of the iWeb window), select the site or one of its pages.
    If the Site Inspector isn’t open, click Inspector in the toolbar (or choose View > Show Inspector), and then click the Site Inspector button.
    In the Site Inspector, click Password.
    Select “Make my published site private.”
    Type a user name and password in the fields.
    All visitors will use the same user name and password.
    IMPORTANT: Don’t use your .Mac user name or password.
    When you publish your website and click Announce, iWeb creates an email message—including the user name and password—that you can send to friends and family to let them know about your website.
    To remove password protection from a site, deselect “Make my published site private” and republish.
    Related Topics
    Announcing your site ►
    Was this page helpful? Send feedback.

  • How to Password Protect  a Page of Your Mobile App

    I am trying to password protect few pages of my mobile app. I am building the app using Jquery Mobile in Dreamweaver for IOS and Android. What is the best way to password protect a page? I am not looking to create a login page..I just want to create few password protected pages that require just one password. Is there a way to do it in Dreamweaver?
    Thank you

    AFAIK, you cannot password protect one section of a jQuery Mobile page.  It's either all protected or it's not protected. 
    Nancy O.

  • Is there a way to password protect individual pages in the site?

    Is there a way to password protect individual pages in the site? I only want specific clients to view specific pages.

    Hello,
    Check these related posts:
    http://forums.adobe.com/message/5702049
    http://forums.adobe.com/thread/1303646
    Hope this helps.
    Cheers
    Parikshit

Maybe you are looking for

  • Can't install AMD driver properly lost all CCC options and 3D

    Hi everyone, I have HP pavilion g6 , win 7 64 bit. Amd Radeon HD 7400M series and Intel HD graphics. My problem started when my screen was getting  black for seconds  alot and when it comes back it said amd stopped so I decided to update the driver. 

  • Reporting Services SQL Server Express 2008 R2

    Hello, Currently we are running: 10.50.1617.0 RTM Standard Edition Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (Intel X86)   Apr 22 2011 11:57:00   Copyright (c) Microsoft Corporation  Standard Edition on Windows NT 5.2 <X86> (Build 3790: Servi

  • Downloaded Adobe Reader to I Pad 2. The PDF file is still not opening.

    This is what the file says when I attempt to open it. I copied the first web link and downloaded Adobe Reader from there. Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be abl

  • How to lock my messages in iphone5

    hi i want to lock my messages in iphone , i have locked my phone but while some of my friends are asking for playing games then i was unlocking my phone and giving them but i have some important messages so i want to lock my messages also so please t

  • KM Search API for "Date" Property

    Hi, I've a problem with the following code. SearchQueryBuilder searchQueryBuilder = new SearchQueryBuilder(); Calendar c = new GregorianCalendar(); c.set(2005, 05, 30); searchProperty = new SearchPropertyFormat(); searchProperty.setName("myProp"); se