wp-config.php dosyası içerisine

define('DISALLOW_FILE_EDIT', true); //Dosya düzenlemeyi kapat
ekliyerek dosyaların düzenlenmesini kapatabilirsiniz WP üzerinden

.htaccess düzenlemeleride yapabilirsiniz...

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

 

<IfModule mod_alias.c>
	RedirectMatch 403 /xmlrpc.php
</IfModule>


<Files php-info.php>
	Order Deny,Allow
	Deny from all
	Allow from ip adresiniz(sabit ise)
</Files>


<Files install.php>
 Order Allow,Deny
 Deny from all
 Satisfy all
</Files>


<Files wp-config\.php>
Order Deny,Allow
Deny from all
</Files>

# Spamlara karşı koruma
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_REFERER} !(.*)siteadresiniz.com(.*) [NC]
RewriteCond %{REQUEST_URI} /wp-comments-post\.php [NC]
RewriteRule .* - [F]
</IfModule>
Bunun Dışında temanın functions.php dosyası içine

/*WP versiyonlarını kapat*/
function _remove_script_version( $src ){
    $parts = explode( '?ver', $src );
        return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
function wptao_disable_version_info() { return ''; }
add_filter('the_generator', 'wptao_disable_version_info');
add_filter('login_errors',create_function('$a',"return null;"));

/*siteyi yorma*/
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator');

/*saçma sapan mailleri durdur*/
function security_remove_emails($content) {
    $pattern = '/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})/i';
    $fix = preg_replace_callback($pattern,"security_remove_emails_logic", $content);
 
    return $fix;
}
/*spambotlara karşı koruma */
function security_remove_emails_logic($result) {
    return antispambot($result[1]);
}
add_filter( 'the_content', 'security_remove_emails', 20 );
add_filter( 'widget_text', 'security_remove_emails', 20 );

/* Admin Bar özelliğini iptal et */
add_filter( 'show_admin_bar', '__return_false' );
 
/* Admin Bar seçeneklerini kullanıcı profilinden kaldır */
remove_action( 'personal_options', '_admin_bar_preferences' );