Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created July 1, 2022 12:29
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lynt-smitka/d23bec2a57696c27781464dbe840932d to your computer and use it in GitHub Desktop.
Save lynt-smitka/d23bec2a57696c27781464dbe840932d to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Lynt Install Blocker
* Author: Vladimir Smitka
* Author URI: https://lynt.cz/
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING && !is_blog_installed() ) {
if ($_SERVER['REMOTE_ADDR'] !== 'my.ip.add.ress' ) {
wp_die('Installer blocked!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment