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
# Keep-Alive | |
<IfModule mod_headers.c> | |
Header set Connection Keep-Alive | |
</IfModule> | |
# Compress Transfer | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE application/atom+xml \ | |
application/javascript application/json application/ld+json \ | |
application/rss+xml application/vnd.ms-fontobject \ |
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 | |
function wp_modify_login_error_incorrect_password($user) { | |
if ( is_wp_error( $user ) ) { | |
$error_string = $user->get_error_message(); | |
if ($user->get_error_code() == 'incorrect_password') { | |
$user = new WP_Error('invalid_username', $error_string); | |
} | |
} | |
return $user; | |
} |
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: Custom Plugin Template | |
* Description: Add custom tweaks and snippets in this custom plugin. | |
* Plugin URI: http://www.wp-sicherheit.info/ | |
* Version: 1.0 | |
* Author: Marc Nilius | |
* Author URI: http://www.wp-sicherheit.info/ | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
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
# Beispiel-Codeschnipsel für die WordPress-htaccess-Datei | |
# https://www.wp-sicherheit.info | |
# Marc Nilius, [email protected] | |
# Mit Material von Zodiac1978, siehe auch https://gist.github.com/Zodiac1978/d25a8f3aebba7cd1c01c | |
# | |
# Diese Codeschnipsel gehören in die .htaccess-Datei im Hauptverzeichnis von WordPress | |
# Jeder einzelne Bestandteil kann einzeln kopiert und genutzt werden. | |
# Bitte die Verwendungshinweise (Kommentare) an jedem Schnipsel beachten |
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
# Beispiel-Datei für WP-Passwortschutz | |
# https://www.wp-sicherheit.info | |
# Marc Nilius, [email protected] | |
# Absicherung der wp-login.php | |
# Der Zugriff eines nicht-eingeloggten benutzers aucf /wp-admin | |
# leitet auch auf die wp-login.php weiter, so dass hiermit | |
# alles abgesichert ist | |
# | |
# Den Pfad zur .htpasswd entsprechend anpassen |
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: Deactivate automatic plugin updates | |
* Description: Deactivates the possibility to automatically update a plugin. | |
* Plugin URI: http://www.wp-sicherheit.info/ | |
* Version: 1.0 | |
* Author: Marc Nilius | |
* Author URI: http://www.wp-sicherheit.info/ | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 |
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
/* | |
* Based on: http://www.quirksmode.org/js/cookies.html | |
* and https://github.com/wojodesign/local-storage-js/blob/master/storage.js | |
* and https://gist.github.com/350433 | |
* License: http://www.opensource.org/licenses/MIT | |
*/ | |
(function(window) { | |
'use strict'; | |
window.sessionStorage = window.sessionStorage || { |