View Full Version : cgi disable and enable question
omegaman66
8-12-06, 07:56 PM
I want to disable all script (message board, chat, photoalbum etc) tonight for a very short time. Question is how quickly does clicking the link in ops take effect and how long does it take after I turn it back on for it to begin working again? I only want it down for a few minutes.
The servers only update twice daily, at 9am and 6pm EST. So disabling CGI from within OPs would not be a logical choice if you only want it disabled for a short time.
omegaman66
8-13-06, 12:27 AM
Thanks that is what I needed to know!
Do you use separate .htaccess files for separate directories? If not, then you can use one .htaccess file in yout htdocs directory to control this relatively easily. The following rule would block access to .php, .cgi, and .pl scripts:
RewriteEngine On
RewriteRule \.(php|cgi|pl)$ - [F]
With this method, you can "enable" it (by using the rule) or "disable" it (by removing or commenting out the rule) whenever you want.
omegaman66
8-13-06, 04:41 AM
I will put that to good use! Thanks a million.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.