How to limit access to OJS during a period?

Thanks Clinton,
I’ve followed your recommendation. Not exactly the same way but very similar:
. Create a ojs-maintenance.html file with a maintenance message
. Activate the Mod_rewrite apache module
. Add a .htaccess in the OJS directory (133.133.2.2 is my IP @, 129.88.2.2 the IP @ of another tester):

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^133\.133\.2\.2$
RewriteCond %{REMOTE_ADDR} !^129\.88\.2\.2$
RewriteRule ".*" "ojs/ojs-maintenance.html"
</IfModule>   

So 133.133.2.2 and 129.88.2.2 are the only machines that may access to OJS.
It has worked very fine.

3 Likes