htaccess - how do i block visitors?

Soldato
Joined
2 Jun 2004
Posts
18,423
this is my htaccess file at present...

<IfModule mod_php4.c>
php_value upload_max_filesize 100M
php_value max_execution_time 800
php_value post_max_size 100M
</IfModule>
exactly what do i need to add to that in order to prevent visitors from viewing my site while i am working on it? ideally i'd like to redirect all visitors to a temporary landing page, but as long as they can't acess my site is all that really matters.
 
A basic redirect would be something like this:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* /errorpage.html
</IfModule>

Or if you don't have access to mod_rewrite you could just deny access
Code:
Order Deny, Allow
Deny From all
 
Why not just put a index.html up with the holding page, and they work on everything else? Or install WAMP/XAMPP and work on localhost..
 
Back
Top Bottom