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

README.md

#Readme

##Website Check Monitor script

For use with StatusCake: statuscake.com.

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:

https://yourusername:yourpassword@yourdomain.co.uk/website-check-monitor/website-check-monitor.php

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: https://ryanfitton.co.uk within the top of the monitoring PHP code.

https://licensebuttons.net/l/by/4.0/88x31.png

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.