How to Stop users till i Go Live on my Website

Discussion in 'PHP' started by kalsarao, Mar 6, 2008.

  1. #1
    Hi,

    I am building a Website, And would like to Stop Users Accessing my Website, till i Compltelty Fix my website and make decision on Go Live.

    How to do this ? I am using PHP, APACHE
     
    kalsarao, Mar 6, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    You can put this in your .htaccess file if you have a static IP. Replace the xxx... with your IP.

    
    order deny,allow
    deny from all
    allow from xxx.xxx.xxx.xxx
    
    Code (markup):
     
    jestep, Mar 6, 2008 IP