Skip to content

Instantly share code, notes, and snippets.

View rvarbanov's full-sized avatar
:shipit:

Radi Varbanov rvarbanov

:shipit:
View GitHub Profile
# Enable all core updates, including minor and major:
define( 'WP_AUTO_UPDATE_CORE', true );
add_filter('auto_update_plugin', '__return_true');
add_filter('auto_update_theme', '__return_true');
define('DISALLOW_FILE_EDIT', true);
error_reporting(0);
@ini_set('display_errors', 0);
<files wp-config.php>
order allow,deny
deny from all
</files>
order deny,allow
allow from 192.168.5.1
deny from all
<Files wp-login.php>
order deny,allow
Deny from all
# allow access from my IP address
allow from 192.168.5.1
</Files>
order allow,deny
deny from 456.123.8.9
allow from all
Options All -Indexes