Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created July 1, 2022 12:29
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<?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