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.....

Similar Messages

  • HT4641 How do you copy and paste text from a website to a pages document please. I could do this on my old ipad but not with ipad air  thank you

    How do you copy and paste text from a website to a Pages document please. I could do this from my old ipad but not from ipad air. Thank you

    Welcome to the Apple Community.
    Why what happens when you try.

  • When I copy and paste a chapter from MS Word into Pages my tables and equations are trashed.  But importing them results in no control over my template How do I get my chapter into my template without copying

    When I copy and paste a chapter from MS Word into Pages my tables and equations are trashed.  But importing them results in no control over my template How do I get my chapter into my template without copying?

    Try just Opening the Word .doc from within Pages and see if that gets closer to what you want, then copy the chapter you want from the Pages version.
    Peter

  • Copy and Paste: Only works for some phrases

    Since the update to IOS8, I've been experiencing problems with the copy and paste function with certain pieces of text. Some will appear to copy fine but often won't paste and I will instead get an older item from my 'clip board' rather than the one I just recently copied.
    This doesn't apply to in-app buttons, like YouTube's copy link feature under the share icon; these links copy and paste fine.
    I'm using the Swift Keyboard and I believe this contributes to the problem in some way. Any thoughts?
    This is becoming increasingly frustrating and inconvenient. Please help!

    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.....

  • Copy and pasting Arabic script

    Hi there..
    I have a pdf file which contains Arabic script. When I copy and paste the Arabic script I get boxes with alien faces in them.
    the file can be found here
    http://www.kalamullah.com/Books/ArabicTutor-VolumeOne.pdf
    Any help will be much much appreciated
    Thanks
    Saf

    pdf cannot be relied upon for copy/paste (and various other things) when using Arabic and various other scripts because of the different encoding systems used depending on how it was produced. The only thing you can do is try different readers (e.g. Adobe Reader instead of Preview) and different recipient apps -- or try to get the text in some other more reliable format (.doc, .rtf, .txt, .html, etc).

  • Copy and paste issues - numbers for Ipad

    Since my Numbers for Ipad last updated I cannot copy and paste an interval of cells to my Gmail App, so I can email. It used to work in the orevious version. What should I do?

    You are asking about Numbers for iOS in a forum dedicated to Numbers for OSX !
    Yvan KOENIG (VALLAURIS, France) vendredi 6 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How do I copy and paste text style for multiple video tracks?

    hello,
    I am creating multiple video tracks with text.  I want to easily copy and paste the style, i.e., Font, Color, Size - rather than having to scroll down the giant list of fonts to find the one I want, then change the color, then change the size - each and every time.  This is arduous.
    I tried copy / paste of one text onto a new video track, but when I type in a different word, it alters the original.
    I have 9 tracks of video for 9 different texts that will pop in and out of my video.  I would like to be able to copy/paste then just change the text.  This would save me a huge amount of time.

    paulrudophmusic
    I know of no way to alphabetized the Adobe Styles that come with the program.
    If you had the time and the inclination, you could rename them all to force them to appear alphabetically, but that does not seem all that practical.
    But, if your interest is in the Styles that you save and you do not hit the Reset File List, the new Styles will be at the bottom of the list and you can name them so that they appear that alphabetically at the bottom of the whole Styles list. But that does not address the matter of you having to scroll to the bottom of the Styles list.
    In some instances, some things that you think that you cannot do in Premiere Elements obvious features, can be done by computer keyboard shortcuts. I check the keyboard shortcuts under the Edit Menu/Keyboard Customization and unfortuately did not find any that would be applicable to this situation.
    As for your changes in one text file popping up unwantedly in another text file, that is because you have text files with the same name. Look into creating duplicates (with different file names) in Project Assets at the onset.
    ATR

  • I'm using firefox 3.6.12 and having problem with copy and pasting.Going on for about 2 weeks. Thanks.

    When trying to copy and paste, i have a hard time with at least 9 attempts before it takes effect. Thais has been going on for about 2 weeks now. Everything seems to happen as it's suppose to until you go and try to paste.

    Update; As of now, i am able to copy and paste. Steps i have taken to correct issues i had before.
    - I installed browser again, but issue came up again.
    -I uninstalled Google Chrome browser, it recently showed up in my task manger when i was not using the browser. AnVir Task Manger showed it being in use, so i stopped the processor and uninstalled Google Chrome.
    '''From Zdnet;Google has shipped a new version of its Chrome web browser to fix at least 14 security vulnerabilities that expose users to malicious hacker attacks.'''
    -I was using Iobit Toolbox Memory. For some reason, this seemed to be the cause of the problem. After uninstalling it, i am able to copy and paste with no more issues.
    I'm no expert, but this has worked for me. Enjoy your weekend. :-)

  • How can I copy and paste a caption for several pictures that are all the same?

    I'm trying to understand the process of importing, labeling and organizing pictures I'm importing from my iPhone into iPhoto 11.
    So far I am importing only pictures that relate to one another; ie taken at the same event.  I have 18 pictures from one hike.  I'd like to label each of those pictures the same; ie "hike at Bear Creak 2/15."  Can I copy and paste the same label to all 18 pictures?  How would I copy and paste?
    There are lots of You Tube videos on the subject of iPhoto and that's how I learn best.  If you know of a really basic one to watch I'd appreciate it. 
    I think I have to take a class at the Apple Store on this basic organizing because it's really escaped me in the 9 months I've had this Mac (switched from PC.)
    Thanks,
    Ginny

      I have 18 pictures from one hike.  I'd like to label each of those pictures the same; ie "hike at Bear Creak 2/15."  Can I copy and paste the same label to all 18 pictures?  How would I copy and paste?
    Ginny,
    select all 18 photos at once in iPhoto on your Mac and then use the menu entry "Photos > Batch Change"
    That will change the titles or descriptions of all photos at once.
    -- Léonie

  • I want to copy and paste a chart from an email into Pages on MAC. I only get the text.  Not the chart.

    I recieved an email that included a chart that I want to put in a document.  When I copy and paste the chart in Pages it only shows the text without the chart.  This shouldnt be too hard but I have no idea why it will not copy this in the format or image that it is.  Thanks.

    This is on OSX 10.9.3 MAC Pro
    Pages version 5.2
    I'm sorry I do not know how to determine the format of the chart.  It was sent to me in the body of an email...it was not an attachment.  Is there a way for me to find that out?
    I actually tried both ways...I copied just the chart & then I copied the whole body of the email that included the chart.  Either way, the chart-lines/box did not paste.  Only the text.
    Thanks Peter!  I'm somewhat new with MAC

  • How to write Java script for refering the 1st page text field from 2nd page?

    Hello I am developing an VISITOR info interactive form with webdynpro ABAP, its with 2 pages. Their heirarchy is,
    VISITOR_form
        |
        |
        |------Page_1
        |            |
        |            |
        |            |------Text_Field_A_1
        |            |
        |            |------Text_Field_A_2
        |
        |------Page_2
                     |
                     |
                     |------Text_Field_B_1
                     |
                     |------Text_Field_B_2
    Now, i have selected the 'Text_Field_B_1' of page_2 and writing the Java script, my requirement is; If Page_1's 'Text_Field_A_2' has a value of "Value_ABCD", THEN the 'Text_Field_B_1' of page_2 should be 'readOnly'. Pls let me know Wht is the Java script for this requirement?

    if (xfa.event.newText=="ABCD")
    VISITOR_form.Page_2.Text_FieldB_1.access ="readOnly";
    place script on change event of Text_FieldA_2

  • Copy and Paste Spreadsheet in Numbers 3.0 to Pages 5.0

    I have a spreadsheet that I need to copy from Numbers 3.0 into Pages 5.0. I have tried to copy and paste to no avail. I have exported as a .pdf and it is blurry when I paste it into the pages document. Does anyone know how I can get this spreadsheet into my Pages 5.0 document?

    Hi Hans,
    I can get a reference error here if the destination table does not have that range available while the source table does. 
    Are you sure your desination table has exactly the same structure and dimensions as your source table?
    If it does, copy/paste via the Formula Editor should work. It works reliably here.
    Also the formula in your latest post looks as if it might be corrupted-- lots of extra spaces (it seems).  Did your orginal formula have those?
    To sort this out, suggest turning off 'Use header names as labels' in Preferences.
    If you end up with a formula in a cell as just Text (as Ian describes that's what happens when you copy from Numbers 2) you can convert that text to a formula by double-clicking the cell, clicking just before the text so that the insertion point appears in front of it and typing =. That activates the Formula Editor with the formula in it, which you can accept by clicking the green checkmark or hitting return.
    SG

  • The bar where the html is suppose to show, the new feature of firefox 4 doesn't seem to show it, what do i do when i want to copy and paste it without loading or refreshing the page again?

    i am having problems with not seeing the HTML on the bar because i always look and copy and paste it on things like Facebook and stuff. but now with this new feature, i cannot see or copy or paste it.

    You can find the Copy, Paste, and Cut buttons in the Edit menu and the Edit sub menu in the Firefox menu.<br />
    If you need access to the menu bar then press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    You can also find them as toolbar buttons in the toolbar palette in the Customize window and drag them on a toolbar.
    * http://kb.mozillazine.org/Toolbar_customization

  • In IE 11 copy and paste not working for CRM 7.1

    The PC’s with the problems are running Windows 8.1 running IE 11
    The users are copying the numbers from a spreadsheet, and pasting it
    into
    the search criteria in SAP CRM. The process is the same whether you are
    searching for Service Orders, Service Contracts, Accounts, Service
    Confirmation.
    In this process when we are trying to paste the search, once after pasting it is running and running and never responded.
    Please help me. Helpful Answer is appreciable.
    Regards,
    Prathyusha.

    Hi
    Thanks for solution
    We are running in Compatability mode only. But still the Issue is happening,
    what is Quirks Mode? Can you let me know, so that i am test.
    Regards,
    Prathyusha

  • 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>

Maybe you are looking for

  • Using Right-justified and left zero-filled condition in message mapping of

    Hi, My Interface is outbound Interface. Suppose source field named 'MobNumber' is mapped with Target field named 'MobileNumber'.Condition is AS IS(Right-justified and left zero-filled). How should i do this mapping? Thanks, Sanghamitra

  • IMP-00017-ctxsys.driimp.create_index During IMPORT

    Hi I got this error while importing a dumpfile to database. Please help me to solve this error. I create database manually. Run scripts - cattalog.sql, catproc.sql,pupbls.sql =========================== . importing MHUBADMIN's objects into MHUBADMIN

  • IWeb SEO Tool

    Hello. I'm trying to use this software. I need to import my site from this location HD/Users/Max/Sites to be able to use this sw. This folder is NOT updated with the last changes, so the whole operation is not useful. Any idea?

  • 32-Audio Unit Bridge freezes on first launch

    I am running Logic Pro 9.1.6 and MainStage 2.2 on 10.7.2 on a Mac mini server (with server functions off) with 8GB. Both Logic Pro and MainStage are running fine in 32-bit mode. In 64-bit mode, after the initial boot, whichever program I begin with f

  • HT4623 How do I remove Facebook friends from my phone contact list?

    My Facebook Friends were not in my Contact List because I have that function turned off in the Facebook App.  Out of nowhere, the Facebook Friends are in my contacts and the function is turned off.  How do I get rid of them.  They clutter up my conta