How to password protect my proxy site - PLEASE HELP

Discussion in 'HTML & Website Design' started by goldencrownz786, Jul 18, 2011.

  1. #1
    hi there

    well i recently bought scrapebox and dont want to spend more money on private proxies,

    i came up with the idea of hosting my own glype script proxies on any random server to use for my scrapebox , i was planning on making around 10 of these proxies for person PRIVATE use , but the thing is i dont want any bots or programs picking up my proxy and giving it away in public lists , is there anyway i can secure them with a password or anything so other bots, programs or people cant use them.

    Please help i urgently need guidance
     
    goldencrownz786, Jul 18, 2011 IP
  2. CrostE

    CrostE Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You can prevent that with a simple php code at the top of index.php:
    First, check your IP at whatsmyip.org.

    
    <?php 
    if($_SERVER['REMOTE_ADDR'] != ' ') // put your personal IP adress in between the ''
    {
    die('This is a private proxy!');
    }
    ?>
    Code (markup):
     
    CrostE, Jul 19, 2011 IP
  3. goldencrownz786

    goldencrownz786 Peon

    Messages:
    168
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks bro , is this more secure than adding a password file to the root directory and changing the htaccess file ?
     
    goldencrownz786, Jul 19, 2011 IP
  4. CrostE

    CrostE Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Its secure, but you can't access the site from others IP's.
     
    CrostE, Jul 20, 2011 IP