Has anybody used Incapsula before?

Status
Not open for further replies.

Matthewza

Posting Freak
Apr 20, 2012
777
77
Hello Devbest,

Has anybody used incapsula before? It's like Cloudflare. I'm wondering if there is a way to block everybody from accessing my Website, like example if I want to fix the site a bit and make sure nobody will go on the website until i'm done. Is there a way to do this? If so please reply!

Thanks,
Matthew
 

Sysode

Front-End Developer
Dec 11, 2012
1,673
848
Just use .htaccess to achieve this, simply place this code in the root of your domain (saved as .htaccess):

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^71\.225\.113\.171
RewriteCond %{REMOTE_HOST} !^71\.185\.239\.212
RewriteCond %{REQUEST_URI} !/maint\.html$
RewriteRule .* /comingsoon.html [R=302,L]

The lines 3-6 you change the IP's to yours and any others you want to allow, this can be as many as you wish.
The 7th line you replace with where you want your users to be redirected.
 

Matthewza

Posting Freak
Apr 20, 2012
777
77
Just use .htaccess to achieve this, simply place this code in the root of your domain (saved as .htaccess):

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^71\.225\.113\.171
RewriteCond %{REMOTE_HOST} !^71\.185\.239\.212
RewriteCond %{REQUEST_URI} !/maint\.html$
RewriteRule .* /comingsoon.html [R=302,L]

The lines 3-6 you change the IP's to yours and any others you want to allow, this can be as many as you wish.
The 7th line you replace with where you want your users to be redirected.


Thanks a lot! :D
 
Status
Not open for further replies.

Users who are viewing this thread

Top