View hash_password.php
<?php | |
// Hash a password | |
// by Gavin Botica | |
// requires PHP 5.5+ | |
define("RQD_PHP_VER", "5.5"); | |
// check php version | |
if (version_compare(PHP_VERSION, RQD_PHP_VER) == -1 ) { | |
echo "<p><b>ERROR:</b> PHP <i>" . RQD_PHP_VER . "</i> required. Version <i>" . PHP_VERSION . "</i> installed.</p>"; |
View wp_offload_media_db_migrate.json
{ | |
"use_https": "", | |
"purge_amazonS3_info": "" | |
} |
View wp-xmlrpc-jail.local
[wp-xmlrpc] | |
enabled = true | |
filter = wp-xmlrpc | |
action = iptables-multiport[name=wp-xmlrpc, port="http,https"] | |
logpath = /var/www/vhosts/system/*/logs/*access*log | |
/var/log/httpd/*access_log | |
bantime = 86400 | |
maxretry = 0 |
View woocommerce-login-logout-redirects.php
/*----------------------------------------------------------------------------*/ | |
// redirects for login / logout | |
/*----------------------------------------------------------------------------*/ | |
add_filter('woocommerce_login_redirect', 'login_redirect'); | |
function login_redirect($redirect_to) { | |
return home_url(); | |
} |
View wp-login-jail.local
[wp-login] | |
enabled = true | |
filter = wp-login | |
action = iptables-multiport[name=wp-login, port="http,https"] | |
sendmail[dest="name@domain.com", sendername="Fail2Ban", sender="fail2ban", name="wp-login"] | |
logpath = /var/www/vhosts/system/*/logs/access*_log | |
maxretry = 5 | |
findtime = 60 | |
bantime = 1200 |