Created
July 1, 2022 12:29
-
-
Save lynt-smitka/d23bec2a57696c27781464dbe840932d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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