Skip to content

Instantly share code, notes, and snippets.

@keithgreer
keithgreer / deploy.php
Last active December 23, 2021 10:24 — forked from nichtich/README.md
How to automatically deploy from GitHub - https://keithgreer.dev/git-automatically-deploy-website-github
<?php
// Forked from https://gist.github.com/1809044
// Available from https://keithgreer.uk/git-automatically-deploy-website-github
// Check if client is allowed
$allowed_ips = array(
'207.97.227.', '50.57.128.', '108.171.174.', '50.57.231.', '204.232.175.', '192.30.252.', // GitHub
'123.123.123.123' // Your own IP address
);