+ Reply to Thread
Results 1 to 4 of 4

Thread: Help with scripts or software for closed sections of a website

  1. #1
    frankfriend is offline x10 Lieutenant frankfriend is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    406

    Help with scripts or software for closed sections of a website

    Hi,
    Can anyone share their experience of scripts, sources of scripts, or software to add a Members only section to a website. It must use secure passwords and user names, and log all entry attempts preferably with the IP address of the person trying to get into the site.
    Best regards Frankfriend

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Help with scripts or software for closed sections of a website

    The htaccess file located in the root of your domain can provide username/ password access control to specific pages or entire folders though basic it is secure enough for most applications.

    After that you move into the realms of encryption and databases where everything is scambled and even if somebody does manage to break in the information is unreadable.


    Grabbing the visitors IP can be difficult sometimes, no one single method allways works so here is a complete IP reading script for PHP.

    Code:
    / The function to get the visitor's IP.
    function getUserIP()
    {
        //check ip from share internet
        if (!empty($_SERVER['HTTP_CLIENT_IP']))
        {
          $ip=$_SERVER['HTTP_CLIENT_IP'];
        }
        //to check ip is pass from proxy
        elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
        {
          $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
        }
        else
        {
          $ip=$_SERVER['REMOTE_ADDR'];
        }
        return $ip;
    }
     
    //The users IP is...
    $visitorsIp = getUserIP();
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    frankfriend is offline x10 Lieutenant frankfriend is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    406

    Re: Help with scripts or software for closed sections of a website

    Hi Cybrax,

    Thanks very much for your help,
    Best regards Frankfriend

  4. #4
    infopage's Avatar
    infopage is offline x10Hosting Member infopage is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    Texas
    Posts
    57

    Re: Help with scripts or software for closed sections of a website

    WordPress has several free plugins that does this..
    Thank you for reading this thread! Here's a gift containing a short free book packed with great ideas for getting traffic to your site together with a viral twist which has already proved VERY profitable for me...just click here to download it NOW (no email signup required!)

+ Reply to Thread

Similar Threads

  1. Free Software Suggestions
    By TechAsh in forum Computers & Technology
    Replies: 280
    Last Post: 02-09-2012, 10:23 PM
  2. New Web Design software from Xara
    By mac173 in forum Graphics & Webdesign
    Replies: 5
    Last Post: 05-31-2011, 12:26 PM
  3. Replies: 1
    Last Post: 05-20-2011, 12:27 PM
  4. Need help with scripts
    By abhinavmohan79 in forum Free Hosting
    Replies: 6
    Last Post: 05-19-2011, 12:23 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