securing webpages

I would like to secure some of my files on my webpage (for exemple: only accessible by password).
Do I have to write a script or are there other solutions ?

Cheers,

Dirk

Comments

  • martian2k4martian2k4 Llama Hunter Moderator
    Well there is always htaccess just gooogke it o find some htaccess password protection tutorials.
    Free MySpace Layouts- Coming soon
    Photoshop Tutorials- Coming soon
    Premium PHP Scripts- Coming soon

    Haha i should really do some work so i can remove all the coming soon's
  • PythonPython Forum Leader The Royal RAM
    Yes .htaccess files could do it but also so could a php script.

    For example after someone hits a form this could be run:

    <?php
    $pass = "Your password";
    if($password==$pass){
    echo "Succesful login";
    } else {
    echo "Incorrect login info";
    }

    ?>

    The Royal Ram

  • deadfingersdeadfingers Senior Member The Royal RAM
    yeah when I did that I just did it with a password, I just did it for fun though and it was a basic form. Read up on them and see which is the best, they are pretty much vary in what features they add in just look at different ones and add in what you want.
    sig.jpg
Sign In or Register to comment.