Skip to content

Turn off a remote website wtih this script that 'calls home'. Great for those clients on remote servers that aren't timely at making payments.

License

Notifications You must be signed in to change notification settings

AndrewChamp/website-killswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Website Killswitch

Turn off a remote website wtih this script that 'calls home'. Great for those clients on remote servers that are making payments.

Example Usage:

'killswitch.xml' will reside on your server. 'killswitch.php' resides on the remote server.


Update 'killswitch.php' w/ the URL of where your 'killswitch.xml' file will reside

private $xml = 'http://domain.com/killswitch.xml';

Add more sites by adding them to your killswitch.xml file

<another-site.com>
	<status>false</status>
	<message>Please contact me immediately.</message>
</another-site.com>

Add this at the top of your client's file

$check = new killswitch($_SERVER['HTTP_HOST']);
if($check->info->status == 'false')
	exit($check->info->message);

About

Turn off a remote website wtih this script that 'calls home'. Great for those clients on remote servers that aren't timely at making payments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages