{"id":6839,"date":"2020-09-06T09:26:56","date_gmt":"2020-09-06T02:26:56","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=6839"},"modified":"2020-09-06T09:26:56","modified_gmt":"2020-09-06T02:26:56","slug":"huong-dan-xu-ly-ma-doc-chuyen-huong-tong-quat-tren-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-xu-ly-ma-doc-chuyen-huong-tong-quat-tren-wordpress\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn x\u1eed l\u00fd m\u00e3 \u0111\u1ed9c chuy\u1ec3n h\u01b0\u1edbng t\u1ed5ng qu\u00e1t tr\u00ean wordpress"},"content":{"rendered":"<p>Th\u00f4ng th\u01b0\u1eddng vi\u1ec7c website b\u1ecb d\u00ednh m\u00e3 \u0111\u1ed9c chuy\u1ec3n h\u01b0\u1edbng r\u1ea5t r\u00f5 nh\u1eadn bi\u1ebft, website khi truy c\u1eadp m\u1edbi s\u1ebd redirect li\u00ean t\u1ee5c t\u1edbi m\u1ed9t s\u1ed1 website m\u00e0 hacker d\u00e0n d\u1ef1ng, vi\u1ec7c n\u00e0y g\u00e2y kh\u00f3 ch\u1ecbu l\u1eabn \u1ee9c ch\u1ebf nh\u1ea5t \u0111\u1ecbnh cho ng\u01b0\u1eddi qu\u1ea3n tr\u1ecb website l\u1eabn kh\u00e1ch h\u00e0ng. M\u00e3 \u0111\u1ed9c ho\u00e0nh h\u00e0nh tr\u00ean trang \u0111\u01b0\u01a1ng nhi\u00ean s\u1ebd khi\u1ebfn cho website c\u1ee7a b\u1ea1n t\u1ee5t h\u1ea1ng rank th\u00ea th\u1ea3m, c\u01b0\u1edbp \u0111i c\u00f4ng s\u1ee9c bao l\u00e2u nay c\u00e0y cu\u1ed1c c\u1ee7a b\u1ea1n. M\u00e3 \u0111\u1ed9c n\u00e0y c\u00f2n \u0111i k\u00e8m v\u1edbi m\u1ed9t s\u1ed1 t\u00e1c v\u1ee5 kh\u00e1c tr\u00ean hosting nh\u01b0:<\/p>\n<ul>\n<li>g\u1eedi email spam s\u1ed1 l\u01b0\u1ee3ng l\u1edbn: B\u1ea1n \u0111\u00f4i l\u00fac th\u1eafc m\u1eafc m\u00ecnh ch\u1eb3ng s\u1eed d\u1ee5ng email th\u1ebf nh\u01b0ng nh\u00e0 cung c\u1ea5p hosting th\u00f4ng b\u00e1o kh\u00f3a g\u00f3i d\u1ecbch v\u1ee5 v\u00ec spam mail th\u00ec ch\u1eafc ch\u1eafn l\u00e0 do m\u00e3 \u0111\u1ed9c.<\/li>\n<li>G\u00f3i hosting load cao li\u00ean t\u1ee5c:\u00a0 \u0110\u00f4i l\u00fac c\u00e1c m\u00e3 \u0111\u1ed9c n\u00e0y c\u00f2n th\u1ef1c hi\u1ec7n m\u1ed9t s\u1ed1 t\u00e1c v\u1ee5 r\u1ea5t n\u1eb7ng (g\u1eedi email l\u1edbn, li\u00ean t\u1ee5c t\u1ea1o file, \u0111\u00e0o ti\u1ec1n \u1ea3o \u2026) khi\u1ebfn cho g\u00f3i hosting \/VPS li\u00ean t\u1ee5c load cao, n\u1ebfu d\u00f9ng hosting b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp\u00a0<strong>CPU and Concurrent Connection Usage\u00a0<\/strong>\u0111\u1ec3 xem chi ti\u1ebft\u00a0 th\u00f4ng tin, v\u00ec load cao n\u00ean \u0111\u01b0\u01a1ng nhi\u00ean s\u1ebd ch\u1eb3ng c\u00f2n bao nhi\u00eau %cpu \u0111\u1ec3 x\u1eed l\u00fd c\u00e1c t\u00e1c v\u1ee5 website, khi\u1ebfn cho th\u1eddi gian load trang v\u00f4 c\u00f9ng d\u00e0i ho\u1eb7c c\u00f3 th\u1ec3 kh\u00f4ng truy c\u1eadp \u0111\u01b0\u1ee3c.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2 id=\"Ph\u1ea7n_1:_Nguy\u00ean_nh\u00e2n_M\u00e3_\u0111\u1ed9c\">Ph\u1ea7n 1: Nguy\u00ean nh\u00e2n M\u00e3 \u0111\u1ed9c<\/h2>\n<ul>\n<li>\u00a0M\u1eadt kh\u1ea9u qu\u1ea3n tr\u1ecb, email, hosting. VPS qu\u00e1 \u0111\u01a1n gi\u1ea3n.<\/li>\n<li>S\u1eed d\u1ee5ng c\u00e1c m\u00e3 ngu\u1ed3n ho\u1eb7c ph\u1ea7n m\u1edf r\u1ed9ng cho m\u00e3 ngu\u1ed3n t\u1ea3i t\u1eeb n\u01a1i kh\u00f4ng r\u00f5 ngu\u1ed3n g\u1ed1c (vd: theme\/plugin WordPress tr\u1ea3 ph\u00ed \u0111\u01b0\u1ee3c t\u00ecm th\u1ea5y tr\u00ean m\u1ed9t s\u1ed1 website chia s\u1ebb mi\u1ec5n ph\u00ed).<\/li>\n<li>S\u1eed d\u1ee5ng c\u00e1c phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n \u0111\u00e3 qu\u00e1 c\u0169 c\u00f3 nguy c\u01a1 l\u1ed5 h\u1ed5ng b\u1ea3o m\u1eadt.<\/li>\n<\/ul>\n<p>Vi\u1ec7c l\u00e2y lan qua m\u00e3 \u0111\u1ed9c \u0111\u00f4i l\u00fac ch\u1ec9 c\u1ea7n t\u1eeb 1 website s\u1ebd c\u00f3 th\u1ec3 l\u00e2y lan ra to\u00e0n b\u1ed9 c\u00e1c website c\u1ee7a b\u1ea1n, g\u00e2y n\u00ean t\u00ecnh tr\u1ea1ng t\u1ea5t c\u1ea3 c\u00e1c website b\u1ecb l\u1ed7i<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Ph\u1ea7n_2:_H\u01b0\u1edbng_x\u1eed_l\u00fd.\">Ph\u1ea7n 2: H\u01b0\u1edbng x\u1eed l\u00fd.<\/h2>\n<p>M\u00e3 \u0111\u1ed9c hi\u1ec7n t\u1ea1i c\u00f3 th\u1ec3 ch\u00e8n v\u00e0o t\u1ea5t c\u1ea3 nh\u1eefng ph\u1ea7n sau tr\u00ean m\u1ed9t website wordpress n\u00f3i chung:<\/p>\n<ul>\n<li>Ch\u00e8n v\u00e0o c\u00e1c file php, js, css theme, plugin ..<\/li>\n<li>\u00a0Ch\u00e8n v\u00e0o c\u00e1c file php, js, css trong wordpress core.<\/li>\n<li>Ch\u00e8n v\u00e0o c\u00e1c b\u1ea3ng posts tr\u00ean database c\u1ee7a website.<\/li>\n<\/ul>\n<p>Th\u00f4ng th\u01b0\u1eddng m\u00e0 n\u00f3i n\u1ebfu m\u1ed9t website b\u1ecb m\u00e3 \u0111\u1ed9c nh\u1eb9 v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 bi\u1ebft \u0111\u01b0\u1ee3c ch\u00e8n\u00a0 \u1edf \u0111\u00e2u, b\u1ea1n c\u00f3 th\u1ec3 g\u1ee1 \u0111o\u1ea1n m\u00e3 \u0111\u00f3 ra. Tuy nhi\u00ean c\u00e1c m\u00e3 \u0111\u1ed9c ch\u00e8n tr\u00ean website r\u1ea5t ph\u1ee9c t\u1ea1p, ch\u00fang th\u01b0\u1eddng xuy\u00ean c\u00f3 c\u1ea3 nh\u1eefng t\u00e1c v\u1ee5 ch\u00e8n v\u00e0o database, \u0111\u00f4i l\u00fac l\u00e0 x\u00f3a lu\u00f4n n\u1ed9i dung tr\u00ean database hay file wp-config.php, khi\u1ebfn website truy c\u1eadp l\u1ed7i. M\u00ecnh v\u1eabn khuy\u1ebfn kh\u00edch c\u00e1c b\u1ea1n x\u1eed l\u00fd d\u1ee9t \u0111i\u1ec3m, n\u1ebfu nh\u01b0 trong tr\u01b0\u1eddng h\u1ee3p b\u1ecb s\u1eeda database hay website b\u1ecb l\u1ed7i code th\u00ec b\u1ea1n c\u1ed1 g\u1eafng restore l\u1ea1i t\u1edbi ng\u00e0y g\u1ea7n nh\u1ea5t kh\u00f4ng b\u1ecb l\u1ed7i code website m\u00e0 ch\u1ec9 b\u1ecb redirect.<\/p>\n<p>L\u01b0u \u00dd: Vi\u1ec7c x\u1eed l\u00fd m\u00e3 \u0111\u1ed9c n\u00e0y c\u1ea7n m\u1ed9t s\u1ed1 ki\u1ebfn th\u1ee9c v\u00e0 hi\u1ec3u bi\u1ebft s\u01a1 l\u01b0\u1ee3c v\u1ec1 website c\u0169ng nh\u01b0 m\u00e3 ngu\u1ed3n, c\u00e1c b\u1ea1n n\u00ean th\u1ef1c hi\u1ec7n theo tr\u00ecnh t\u1ef1 kh\u00f4ng n\u00ean tay ngang, n\u1ebfu kh\u00f4ng thao t\u00e1c \u0111\u01b0\u1ee3c b\u1ea1n c\u00f3 th\u1ec3 nh\u1edd ng\u01b0\u1eddi thi\u1ebft k\u1ebf website ho\u1eb7c n\u1ebfu l\u1ed7i b\u1ea1n n\u00ean restore l\u1ea1i ho\u1eb7c t\u00ecm ph\u01b0\u01a1ng \u00e1n x\u1eed l\u00fd kh\u00e1c<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Ph\u1ea7n_3:\u00a0X\u1eed_l\u00fd_m\u00e3_\u0111\u1ed9c_chuy\u1ec3n_h\u01b0\u1edbng_tr\u00ean_wordpress\">Ph\u1ea7n 3:\u00a0X\u1eed l\u00fd m\u00e3 \u0111\u1ed9c chuy\u1ec3n h\u01b0\u1edbng tr\u00ean wordpress<\/h2>\n<p>Backup v\u00e0 download website (database+ code) gi\u1eef t\u1ea1i m\u00e1y t\u00ednh m\u00ecnh, \u0110i\u1ec1u n\u00e0y \u0111\u1ec1 ph\u00f2ng b\u1ea5t tr\u1eafc c\u00f3 th\u1ec3 x\u1ea3y ra. M\u1eb7c d\u00f9 nh\u00e0 cung c\u1ea5p hosting th\u01b0\u1eddng c\u00f3 c\u00e1c b\u1ea3n backup, tuy nhi\u00ean linh h\u1ed3n ai ng\u01b0\u1eddi n\u1ea5y gi\u1eef, b\u1ea1n n\u00ean ch\u1ee7 \u0111\u1ed9ng t\u1ea5t c\u1ea3 v\u1edbi d\u1eef li\u1ec7u c\u1ee7a m\u00ecnh, kh\u00f4ng n\u00ean ph\u1ee5 thu\u1ed9c v\u00e0o ai.<\/p>\n<ol>\n<li>X\u1eed l\u00fd theme v\u00e0 plugin:<\/li>\n<\/ol>\n<p>B\u1ea1n c\u1ed1 g\u1eafng \u0111\u0103ng nh\u1eadp wp-admin l\u1ea5y l\u1ea1i th\u00f4ng tin plugin v\u00e0 theme \u0111ang k\u00edch ho\u1ea1t. V\u1ec1 plugin b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0o trang qu\u1ea3n l\u00fd plugins sau \u0111\u00f3 c\u00f3 th\u1ec3 truy c\u1eadp t\u1edbi Trang Plugin t\u1ea1i WordPress.org. Sau \u0111\u00f3 t\u1eeb trang g\u1ed1c plugin t\u1ea1i wordpress.org b\u1ea1n download c\u00e1c plugin n\u00e0y v\u1ec1 \u0111\u1ec3 t\u1ea5t c\u1ea3 file .zip n\u00e0y v\u00e0o m\u1ed9t folder tr\u00ean m\u00e1y t\u00ednh. V\u1edbi c\u00e1c plugin tr\u1ea3 ph\u00ed hay theme tr\u1ea3 ph\u00ed, b\u1ea1n truy c\u1eadp trang m\u00ecnh \u0111\u00e3 mua key v\u00e0 download v\u1ec1.<\/p>\n<ol start=\"2\">\n<li>X\u1eed l\u00fd wordpress core:<\/li>\n<\/ol>\n<p>Tr\u00ean th\u01b0 m\u1ee5c website, b\u1ea1n x\u00f3a t\u1ea5t c\u1ea3 n\u1ed9i dung tr\u1eeb\u00a0 folder sau v\u00e0 t\u1ea5t c\u1ea3 c\u00e1c n\u1ed9i dung b\u00ean trong n\u00f3 :\u00a0<strong>wp-content\/uploads<\/strong><\/p>\n<p>+ download wordpress core s\u1ea1ch t\u1ea1i :\u00a0https:\/\/wordpress.org\/\u00a0 Sau \u0111\u00f3 gi\u1ea3i n\u00e9n l\u1ea1i v\u00e0o th\u01b0 m\u1ee5c quy \u0111\u1ecbnh ch\u1ee9a website wordpress.<\/p>\n<p>+ upload c\u00e1c plugin s\u1ea1ch \u0111\u00e3 download l\u1ea1i v\u00e0o th\u01b0 m\u1ee5c sau v\u00e0 gi\u1ea3i n\u00e9n:\u00a0<strong>wp-content\/plugins\u00a0\u00a0<\/strong><\/p>\n<p>+ Upload l\u1ea1i theme s\u1ea1ch \u0111\u00e3 download l\u1ea1i v\u00e0o th\u01b0 m\u1ee5c sau v\u00e0 gi\u1ea3i n\u00e9n:\u00a0<strong>wp-content\/themes\u00a0<\/strong><\/p>\n<p>L\u01b0u \u00fd, Th\u00f4ng th\u01b0\u1eddng v\u1edbi c\u00e1c theme gi\u1edd c\u00f3 \u0111i k\u00e8m c\u1ea3 child-theme, t\u1ed1t nh\u1ea5t b\u1ea1n n\u00ean upload c\u1ea3 child-theme n\u00e0y v\u00e0o c\u00f9ng\u00a0 th\u01b0 m\u1ee5c\u00a0<strong>wp-content\/themes\u00a0<\/strong>v\u00e0 gi\u1ea3i n\u00e9n.<\/p>\n<ol start=\"3\">\n<li>X\u1eed l\u00fd Database:<\/li>\n<\/ol>\n<p>M\u1ed9t s\u1ed1 chuy\u1ec3n h\u01b0\u1edbng th\u01b0\u1eddng g\u1eb7p v\u1edbi m\u1ed9t s\u1ed1 m\u00e3 trang chuy\u1ec3n h\u01b0\u1edbng th\u01b0\u1eddng g\u1eb7p nh\u1ea5t hi\u1ec7n nay nh\u01b0 t\u1edbi trang s2.voipnewswire.net.<\/p>\n<p>Th\u00f4ng th\u01b0\u1eddng nh\u1ea5t th\u00ec c\u00e1c m\u00e3 \u0111\u1ed9c ch\u00e8n tr\u00ean database trong b\u1ea3ng prefix_posts,\u00a0 b\u1ea1n c\u00f3 th\u1ec3 thay th\u1ebf update database b\u1eb1ng l\u1ec7nh:<\/p>\n<p><em>update prefix_posts set post_content = replace(post_content,\u2019n\u1ed9i c\u1ea7n thay th\u1ebf\u2019,\u2019n\u1ed9i dung thay th\u1ebf\u2019);\u00a0 \u00a0<\/em><\/p>\n<p>(trong \u0111\u00f3\u00a0 prefix c\u1ee7a database b\u1ea1n c\u1eadp nh\u1eadt cho \u0111\u00fang v\u1edbi database c\u1ee7a m\u00ecnh).<\/p>\n<p>Ho\u1eb7c \u0111\u1ec3 \u0111\u01a1n gi\u1ea3n, b\u1ea1n c\u00f3 th\u1ec3 download database v\u1ec1, sau \u0111\u00f3 m\u1edf l\u00ean b\u1eb1ng c\u00e1c tr\u00ecnh editor r\u1ed3i s\u1eed d\u1ee5ng c\u00f4ng c\u1ee5 t\u00ecm ki\u1ebfm v\u00e0 thay th\u1ebf \u0111\u1ec3 c\u1eadp nh\u1eadt l\u1ea1i database, Sau \u0111\u00f3 import l\u1ea1i database c\u1ee7a m\u00ecnh (nh\u1edb drop database c\u0169).<\/p>\n<ol start=\"4\">\n<li>x\u1eed l\u00fd b\u01b0\u1edbc cu\u1ed1i.<\/li>\n<\/ol>\n<p>Th\u00f4ng th\u01b0\u1eddng sau thao t\u00e1c xong, n\u1ebfu ch\u00ednh x\u00e1c b\u1ea1n kh\u00f4ng c\u1ea7n ph\u1ea3i l\u00e0m g\u00ec n\u1eefa. Tuy nhi\u00ean c\u00f3 m\u1ed9t s\u1ed1 website b\u1ea1n c\u1ea7n c\u1eadp nh\u1eadt l\u1ea1i m\u1ed9t s\u1ed1 th\u00f4ng tin nh\u01b0 contact form 7, 1 s\u1ed1 widget ..<\/p>\n<p>Cu\u1ed1i c\u00f9ng b\u1ea1n nh\u1edb c\u1eadp nh\u1eadt l\u1ea1i t\u1ea5t c\u1ea3 m\u1eadt kh\u1ea9u qu\u1ea3n tr\u1ecb website, hosting \u0111\u1ec3 tr\u00e1nh b\u1ecb l\u1ed7i. N\u1ebfu c\u1ea3m th\u1ea5y website \u1ed5n \u0111\u1ecbnh r\u1ed3i b\u1ea1n c\u00f3 th\u1ec3 backup l\u1ea1i website m\u1ed9t l\u1ea7n n\u1eefa nh\u1edd qu\u1ea3n tr\u1ecb hosting reset l\u1ea1i hosting v\u1ec1 m\u1eb7c \u0111\u1ecbnh \u0111\u1ec3 tr\u00e1nh b\u1ecb c\u00e1c m\u00e3 \u0111\u1ed9c \u1ea9n t\u1ea1i c\u00e1c file h\u1ec7 th\u1ed1ng hosting sau \u0111\u00f3 upload l\u1ea1i.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Th\u00f4ng th\u01b0\u1eddng vi\u1ec7c website b\u1ecb d\u00ednh m\u00e3 \u0111\u1ed9c chuy\u1ec3n h\u01b0\u1edbng r\u1ea5t r\u00f5 nh\u1eadn bi\u1ebft, website khi truy c\u1eadp m\u1edbi s\u1ebd redirect li\u00ean t\u1ee5c t\u1edbi m\u1ed9t s\u1ed1 website m\u00e0 hacker d\u00e0n d\u1ef1ng, vi\u1ec7c n\u00e0y g\u00e2y kh\u00f3 ch\u1ecbu l\u1eabn \u1ee9c ch\u1ebf nh\u1ea5t \u0111\u1ecbnh cho ng\u01b0\u1eddi qu\u1ea3n tr\u1ecb website l\u1eabn kh\u00e1ch h\u00e0ng. M\u00e3 \u0111\u1ed9c ho\u00e0nh h\u00e0nh tr\u00ean trang [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5154,5167],"class_list":["post-6839","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-wordpress","ht_kb_category-cau-hoi-chung-ve-wordpress"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/6839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=6839"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/6839\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=6839"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=6839"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=6839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}