+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Password Protected Webpages..

  1. #1
    shohil is offline x10Hosting Member shohil is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    11

    Password Protected Webpages..

    Can anyone provide me the script. I want to protect my pages through password. I want only my members to view that specified pages.

    Thanks

    Regards
    Shohil Meghani

  2. #2
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Password Protected Webpages..

    you might want to try a CMS, rather than coding it yourself, since there might be security flaws, and what not
    I suggest Joomla, but there are others

  3. #3
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Password Protected Webpages..

    There are a couple of ways to do it.

    1. Use .htacess. This provides a very secure way of protecting pages/folders, but it doesn't look very nice. (Deadlock is a good .htaccess password manager.)
    2. Use PHP. this method allows you to customise the look of the login box etc. but usually takes longer to set-up as you need to add some code to the top of every page you want protecting. (I use vAuthenticate for my website. But there are many more).

    If you need help setting up any of these please ask.
    Last edited by TechAsh; 03-07-2008 at 11:34 AM.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  4. #4
    shohil is offline x10Hosting Member shohil is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    11

    Re: Password Protected Webpages..

    @ TechAsh

    Can you explain me in detail. I dont have any much knowledge about it.

    If you will provide me the link, I will read.

    Thanks

    Regards
    Shohil Meghani

  5. #5
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Password Protected Webpages..

    You can read about .htaccess password protection here http://www.javascriptkit.com/howto/htaccess3.shtml

    If you are trying to protect a members area (Somewhere where visitors can login), then I would recommend using PHP login. (It looks nicer, and is easier to integrate and administer.) There are hundreds of different scripts to protect your pages (Then one I linked to in my other post is the one I use. It's quite simple, but it works and is highly customisable.)

    If you need more instructions on exactly how to integrate a login system, either read the instructions that come with the program, or ask and I'll see what I can do.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  6. #6
    shohil is offline x10Hosting Member shohil is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    11

    Re: Password Protected Webpages..

    Ok thank you.

    I dont have knowledge about php programming. You tell me the best and the easiest way to make members area. Also tell me the procedure for that.

    Thanks

    Regards
    Shohil Meghani

  7. #7
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: Password Protected Webpages..

    i will suggest to use a good CMS.
    e107 is good http://e107.org
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


  8. #8
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Password Protected Webpages..

    You can find loads of PHP scripts that can do this - http://www.hotscripts.com/.

  9. #9
    erikkie is offline x10Hosting Member erikkie is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    3

    Re: Password Protected Webpages..

    i recommed you made a php script (or download) it work's nice :D

  10. #10
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Password Protected Webpages..

    First download vSignup. Then upload the files to the folder you want to protect.

    Then open phpMyAdmin and run the 'createdb.sql' file to create the needed tables.

    Next you need to add this code to the pages you want to protect (The pages must be php files):
    <?php
    require_once ("auth.php");
    require_once ("authconfig.php");
    require_once ("check.php");
    ?>
    Note you may need to change the path to the 3 files.

    Next login to the Admin panel (username=admin, password=access) and check/change any settings.

    Done. (You should read the documentary included in the download, because it explain the setup in more detail.)

    The instructions in the Documentary are:
    Installation:

    1. Launch your database manager (phpMyAdmin) for MySQL and run the createdb.sql file.

    2. Modify authconfig.php to match your database settings and your file pathing.

    3. Modify auth.php to match your database settings.

    4. Modify signup config to match your database settings, file pathing, and administrator email address.

    5. You can modify the login.php page to suit your needs or better yet, use your own page and include a login box. One of the rules is that you SHOULD include the authconfig.php in whichever page you will have your login box at (let's say, your index.php). Also, take note of these requirements for the login box:
    a. The page where the login box is located should be a PHP file, not an HTML file.
    b. Login box's form action parameter should be set to <?php echo $resultpage; ?> as it gets the value from the authconfig.php that we included.
    c. The username field should have a name of 'username' without the quotes.
    d. The password field should have a name of 'password' without the quotes.

    6. All files under the admin folder must remain that way. The admin folder itself MUST reside inside the folder where vSignup is located. Although you can change this in authconfig.php, it is not recommended to change the line unless you know a great deal about server-side includes and pathname resolution.

    7. The members directory can be anywhere as vSignup allows you to protect files outside the vSignup folder as long as the protected file is a PHP file and it has proper pathing for the 3 include files (auth.php, authconfig.php, andcheck.php).

    8. Upload all files to your server using ASCII. You can disregard createdb.sql (we have already used it in step 1), README.txt, documentation.html, AuthClass.txt, and faq.txt as these are not used in the script itself.
    This is a simple tutorial that should get you going, you will probable want to edit the script to make i match the style of your website. Unfortunately it doesn't use template, but you only need to know HTML to edit it.
    Last edited by TechAsh; 03-11-2008 at 11:44 AM.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. An email from own domain issue
    By holeepassion in forum Free Hosting
    Replies: 5
    Last Post: 02-08-2008, 06:35 PM
  2. how to password protect your folder
    By agaitu in forum Tutorials
    Replies: 6
    Last Post: 12-14-2007, 04:03 PM
  3. Do password protected areas, need ads?
    By randomize in forum Free Hosting
    Replies: 1
    Last Post: 06-07-2006, 05:55 AM
  4. reset password plz...
    By davegsun in forum Free Hosting
    Replies: 1
    Last Post: 11-17-2005, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers