Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


##Website Check Monitor script

For use with StatusCake:

This code may be used with other monitoring services, however you may need to perform some extra coding modifications.

This code will send a HTTP Status 200 (Ok) or Status 404 (Not found) depending if a database connection can be established. This will 'trick' the uptime test into thinking if the page is up/down.

###Using the script under .htpasswd If you have protected this file with .htaccess and .htpasswd, you can pass the login info over the URL such as this:

This is useful to use when status monitoring providers do not allow you to specify if the directory requires login details.

###WordPress Issues If you experience 404 issues with WordPress when using .htaccess/.htpasswd protected folders.

Add these lines of code within WordPress' .htaccess file under the part which says # END WordPress

ErrorDocument 401 default
ErrorDocument 403 default

##License The license for this software is Creative Commons: Attribution 4.0 International.

This means you can Share and Redistribute in any medium or form. You can Adapt the code to suit your needs, and build in new code. The software can be used personally or commercially.

You must give attribution to the original author (Ryan Fitton). You can give attribution by including my name and linking to my website: within the top of the monitoring PHP code.

Creative Commons Licence: Website Check Monitor script by Ryan Fitton is licensed under a Creative Commons Attribution 4.0 International License.

##Warranty Ryan Fitton disclaims all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall Ryan Fitton be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of this software.

You can’t perform that action at this time.