4 replies
  • WEB DESIGN
  • |
Hey guys,

This is for anyone familiar with WP IM themes / OptimizePress.

I'm creating a funnel with OptimizePress right now, but don't want the site to be accessible until it's done.

So if I, say, want to build my site on example.com, but don't want anyone to be able to SEE anything when they actually visit the domain until I decide to "open up" my site, how can I do that?

Any help is appreciated, I'm guessing this is likely a simple issue, I just haven't been able to find a way to get it done.

Thanks peeps!

Vince
#blocking #index
  • Profile picture of the author Ken Durham
    If you are using php and have a static IP, you can check IPs and send others to a temp landing page by putting this at the beginning of any protected page:

    <?php

    if(isset($_SERVER['REMOTE_ADDR'])){
    $ip=$_SERVER['REMOTE_ADDR'];
    if($ip!="YOUR IP HERE"){
    header( 'Location: alternativelandingpage.php' );
    }
    }else{
    header( 'Location: alternativelandingpage.php' );
    }

    ?>

    OR:

    Create a .htaccess file in your root folder and put this into it:

    order deny, allow
    deny from all
    allow from xxx.xxx.xxx.xxx

    Replace xxx.xxx.xxx.xxx with the ip you want to allow.
    Signature

    yes, I am....

    {{ DiscussionBoard.errors[4264096].message }}
  • Profile picture of the author Vince Caso
    But would I have to manually put that on every page, or the "index"?

    Also, I'm wondering if HAVING a different "Index" file in the first place will mess with optimizepress? All I'm looking for is for someone who visits the root domain to see a "Coming soon" or even just a blank page.

    Thanks,
    Vince
    {{ DiscussionBoard.errors[4264152].message }}
  • Profile picture of the author Vince Caso
    Thanks for the tips, everyone!

    Oh no, I definitely do not plan to block the site on search engines. Thanks for the info.

    Vince
    {{ DiscussionBoard.errors[4265231].message }}

Trending Topics