Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32

Thread: Can this Coding be in More Simple Way

  1. #11
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there creative1977,

    So You mean "on reflection" is In-Context to the Password?
    No, I meant that on reflection a PHP as opposed to a HTML method was preferable.

    use of .htpasswrd and .htaccess mean the UserNAME and Password to Access the Server?
    Yes, the two files should communicate with the server, but I was unable to code it it correctly.
    If you wish to try yourself, check out this link..

    htpasswd for a web page


    I have Sent you a PM. Can you please Respond to My PM?
    Maybe, if it is not of a personal nature.

    coothead
    ~ the original bald headed old fart ~

  2. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-05-2021)

  3. #12
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    Hi coothead,

    Thanks for your Response. Hope you are Doing Well and Safe.

    No, I meant that on reflection a PHP as opposed to a HTML method was preferable.
    Ah! Okie. I Understood. Can you please Send Me the Zipped Folder?

    Yes, the two files should communicate with the server, but I was unable to code it it correctly.
    If you wish to try yourself, check out this link..

    htpasswd for a web page
    Thank you for Sending the Reference Link. I will Check it during Weekend.

    Maybe, if it is not of a personal nature.
    It was Not of a Personal Nature. It was related to Discussion.

  4. #13
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Quote Originally Posted by creative1977 View Post

    Can you please Send Me the Zipped Folder?

    I actually gave you a link to the zipped PHP password folder in post #9.

    Here it is again...

    creative-77-psw.zip

    coothead
    ~ the original bald headed old fart ~

  5. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-07-2021)

  6. #14
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    Hi coothead,

    Thanks for your Response.

    I actually gave you a link to the zipped PHP password folder in post #9.
    Just now I Scrolled Back to post #9 to Check it and I Realized that I just didn't Notice the Given Link which was under:
    3. I certainly can.

    Here it is again...
    Thank you for Sending Again...

  7. #15
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there creative1977,

    let us know if you are able to get it to work for you OK.

    coothead
    ~ the original bald headed old fart ~

  8. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-08-2021)

  9. #16
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    Hi coothead,
    Thanks for your Response.
    let us know if you are able to get it to work for you OK.
    I Unzipped the "creative-77-psw.zip" and Checked the Files. In the "index.php" file, there is a PHP Code which is above <!DOCTYPE HTML> Is it Possible to Keep that PHP's psw Code in a Different file instead of Incorporating within "index.php" file? Because, it can be Seen very Easily in Source Code from Browser. I just feel that the "psw" needs to be Kept in a Secure Mode. I hope I am Making Sense. I hope You received my PM. If not, then I will ReSend it again. Ah! And then, what should I Do to Keep the index Page safe from Web Crawlers? I do not want index Page to Get Listed in Search Engines.

  10. #17
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there creative1977,


    the PHP code above the <!DOCTYPE HTML> is SERVER SIDE code and not sent to or visible CLIENT SIDE.

    Go to this page...

    https://coothead.co.uk/creative1977/index.php

    .and then click View Source to put your mind at rest.

    coothead
    ~ the original bald headed old fart ~

  11. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-12-2021)

  12. #18
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Quote Originally Posted by creative1977 View Post
    What should I do to Keep the index Page safe from Web Crawlers?
    I do not want index Page to Get Listed in Search Engines
    .

    coothead
    ~ the original bald headed old fart ~

  13. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-12-2021)

  14. #19
    Join Date
    Jul 2012
    Posts
    26
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default

    Hi coothead,
    Thanks for your Response. Hope you are Doing Well and Safe.
    the PHP code above the <!DOCTYPE HTML> is SERVER SIDE code and not sent to or visible CLIENT SIDE.
    Ah! Okie. Understood.
    Go to this page...
    https://coothead.co.uk/creative1977/index.php
    .and then click View Source to put your mind at rest.
    WOW! That's Cool. Thanks for Putting My Mind at Rest.
    I will Check those 2 Links sometime during Weekend. Is there any Alternative Way to Contact and Get in Touch with You?

  15. #20
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,027
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there creative1977,

    I forgot to mention that, although robots.txt is used to deter crawlers,
    your index.php would, actually, only be visible to them if they were in
    possession of your password.

    What the crawlers will see when trying to crawl index.php is...

    Code:
    
    <!DOCTYPE HTML>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
    
    <title>Login Page</title>
    
    <link rel="stylesheet" href="screen.css" media="screen">
    
    </head>
    <body>
    
      <header>
       <h1>- Login -</h1>
      </header>
    
      <main>
       <form method="POST">
        <div>
             </div>
        <label for="password"> Enter password for access:</label>
        <input type="password"  id="password" name="password">
        <button type="submit">Submit</button>
       </form>
      </main>
    
      <footer>
        Segment
      </footer>
    
    </body>
    </html>
    
    Is there any Alternative Way to Contact and Get in Touch with You?
    My normal and preferred way of communication with members is directly
    in the forums. Why do you find that unacceptable?

    coothead
    Last edited by coothead; 04-13-2021 at 09:55 AM.
    ~ the original bald headed old fart ~

  16. The Following User Says Thank You to coothead For This Useful Post:

    creative1977 (04-14-2021)

Similar Threads

  1. Need to create a simple 'update text on website' from a simple admin page
    By jamiemyburgh in forum Looking for such a script or service
    Replies: 2
    Last Post: 07-01-2013, 02:49 PM
  2. Need help with simple coding
    By Stryker412 in forum CSS
    Replies: 3
    Last Post: 05-12-2011, 04:22 PM
  3. Replies: 2
    Last Post: 03-17-2009, 07:09 PM
  4. Coding
    By annie in forum HTML
    Replies: 2
    Last Post: 10-01-2008, 01:05 PM
  5. Need some coding help
    By jzhang1013 in forum PHP
    Replies: 5
    Last Post: 09-25-2008, 11:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •