Linux host36.vpshosting.vn 5.14.0-611.47.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 8 20:00:39 EDT 2026 x86_64
LiteSpeed
Server IP : 103.200.23.189 & Your IP : 216.73.217.121
Domains :
Cant Read [ /etc/named.conf ]
User : adbcom
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
adbcom /
Delete
Unzip
Name
Size
Permission
Date
Action
.cagefs
[ DIR ]
drwxrwx--x
2026-03-19 03:56
.caldav
[ DIR ]
drwxr-xr-x
2024-08-07 09:02
.cl.selector
[ DIR ]
drwxr-xr-x
2026-04-30 21:42
.clwpos
[ DIR ]
drwxr-xr-x
2024-08-07 16:29
.config
[ DIR ]
drwxr-xr-x
2024-10-03 16:48
.cpaddons
[ DIR ]
drwxr-xr-x
2025-02-28 15:29
.cpanel
[ DIR ]
drwx------
2026-05-20 12:51
.htpasswds
[ DIR ]
drwxr-x---
2024-08-09 08:10
.koality
[ DIR ]
drwxr-xr-x
2024-08-07 16:57
.razor
[ DIR ]
drwxr-xr-x
2025-11-25 01:52
.softaculous
[ DIR ]
drwx--x--x
2024-08-09 19:44
.spamassassin
[ DIR ]
drwxr-xr-x
2024-08-07 09:02
.ssh
[ DIR ]
drwx------
2026-04-30 22:55
.subaccounts
[ DIR ]
drwxr-xr-x
2024-08-08 15:38
.trash
[ DIR ]
drwxr-xr-x
2024-10-11 22:13
access-logs
[ DIR ]
drwxr-x---
2026-05-19 19:12
etc
[ DIR ]
drwxr-xr-x
2026-05-20 12:33
logs
[ DIR ]
drwxr-xr-x
2026-05-19 19:46
lscache
[ DIR ]
drwxrws---
2026-05-18 14:58
lscmData
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
mail
[ DIR ]
drwxr-x--x
2026-05-18 14:58
preserve-20260430-2037
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
preserve-20260430-2039
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
preserve-20260430-2056
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
public_html
[ DIR ]
drwxr-x---
2026-05-20 14:50
singhouse.vn
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
ssl
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
tmp
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
wordpress-backups
[ DIR ]
drwxr-xr-x
2026-05-18 14:58
www
[ DIR ]
drwxr-x---
2026-05-20 14:50
.bash_history
19.64
KB
-rw-r--r--
2026-05-01 17:29
.bash_logout
18
B
-rw-r--r--
2024-08-07 09:02
.bash_profile
141
B
-rw-r--r--
2024-08-07 09:02
.bashrc
376
B
-rw-r--r--
2024-08-07 09:02
.htaccess
197
B
-r--r--r--
2026-05-18 14:58
.imunify_patch_id
106
B
-rw-r--r--
2025-04-15 08:45
.lastlogin
577
B
-rw-r--r--
2026-05-01 17:30
.lesshst
20
B
-rw-------
2026-05-01 17:07
.lsphp_restart.txt
0
B
-rw-r--r--
2024-10-11 19:42
.myimunify_id
102
B
-rw-r--r--
2024-08-07 12:24
.spamassassinboxenable
0
B
-rw-r--r--
2024-08-07 09:02
.spamassassinenable
0
B
-rw-r--r--
2024-08-07 09:02
.viminfo
1.62
KB
-rw-r--r--
2024-10-10 18:00
.wp-toolkit-identifier
684
B
-rw-------
2026-03-19 05:30
htaccess.backup-20260501-170707
6.36
KB
-rw-r--r--
2026-05-01 17:07
wp-blog-header.php
2.74
KB
-r--r--r--
2026-05-18 14:58
wp-cron.php
2.74
KB
-rw-r--r--
2026-05-18 14:58
Save
Rename
#1724858167 cd /home/adbcom/public_html #1724858203 php artisan optimize:clear #1727948935 top #1727949136 ps aux #1727949148 crontab -e #1727949187 ps -aux #1727949265 ps -eo pid,comm,%cpu --sort=-%cpu #1727949365 ps -aux #1727949531 top #1727949555 netstat -an #1727949577 mysqladmin processlist #1727949588 htop #1727949591 top #1727949628 ps -aux #1727949946 '' #1727949974 ps -aux #1727950024 top #1727951188 | grep faq_email_conf #1727951193 top | grep faq_email_conf #1727951221 top | grep mysqli.class #1727951233 top #1728557971 cd public_html/ #1728557974 tail -f error_log #1728557992 vi /home/adbcom/public_html/wp-includes/compat.php #1728557999 touch /home/adbcom/public_html/wp-includes/compat.php #1728558021 vi /home/adbcom/public_html/wp-includes/compat.php #1728558024 tail -f error_log #1728558036 vi /home/adbcom/public_html/wp-settings.php #1728558706 cd public_html/ #1728558709 tail -f error_log #1728570459 cd public_html/ #1728641375 chmod 644 /home/adbcom/public_html/.htaccess #1728644610 cd public_ #1728644612 cd public_html/ #1728644614 ls -la #1728644749 find ./ -type d -exec chmod 755 {} \; #1728644750 find ./ -type f -exec chmod 644 {} \; #1728644781 find ./ -type d -exec chmod 755 {} \; #1728644785 ls -la #1728644830 ccd .. #1728644834 cd .. #1728644837 find ./ -type f -exec chmod 644 {} \; #1728645004 sudo find ./public_html -type d -exec chmod 755 {} \; #1728645004 sudo find ./public_html -type f -exec chmod 644 {} \; #1728645019 sudo find ./ -type d -exec chmod 755 {} \; #1728645048 cd public_html/ #1728645059 ls -la #1728645083 find ./ -type f -exec chmod 644 {} \; #1728645092 cd .. #1728645095 ls -la #1728645202 chattr -i #1728645208 chattr -i public_html/ #1728645579 cd public_html/ #1728645582 chattr -i .htaccess #1728645630 ls -la #1728645646 sudo find ./ -type d -exec chmod 755 {} \; #1728645651 find ./ -type d -exec chmod 755 {} \; #1728645748 find ./ -type f -exec chmod 644 {} \; #1728653395 cd public_html/ #1728653402 chattr +i .htaccess #1728653411 pwd #1728653456 ls -la #1777545155 cd /home/adbcom/public_html #1777545161 git status #1777546296 cd /home/adbcom/public_html && echo "=== 1. Root listing ===" && ls -la | head -25 && echo && echo "=== 2. Plugins thực tế ===" && ls wp-content/plugins/ && echo && echo "=== 3. Themes thực tế ===" && ls wp-content/themes/ && echo && echo "=== 4. Disk free ===" && df -h /home/adbcom && echo && echo "=== 5. Git binary ===" && which git && git --version && echo && echo "=== 6. Active plugins (đọc từ wp-config + DB không cần) ===" && ls -la wp-config.php && echo && echo "=== 7. Uploads top size ===" && du -sh wp-content/uploads/ 2>/dev/null && echo && echo "=== 8. Test repo reachability ===" && git ls-remote https://github.com/thanhhai287/singhouse-wordpress.git HEAD 2>&1 | head -3 #1777547238 git ls-remote https://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@github.com/thanhhai287/singhouse-wordpress.git HEAD #1777556267 set -e # dừng ngay nếu có lỗi #1777556267 cd /home/adbcom/public_html #1777556267 TS=$(date +%Y%m%d-%H%M) #1777556267 PRESERVE=/home/adbcom/preserve-$TS #1777556267 echo "=== Phase 1: Preserve files sẽ bị overwrite ===" #1777556267 mkdir -p $PRESERVE #1777556267 cp wp-config.php $PRESERVE/ #1777556267 cp .htaccess $PRESERVE/ #1777556267 cp -r wp-content/themes/luxe $PRESERVE/luxe-theme #1777556267 cp -r wp-content/themes/luxe-child $PRESERVE/luxe-child-theme #1777556267 cp -r wp-content/plugins/luxe-core $PRESERVE/luxe-core-plugin #1777556267 echo "✓ Preserved at $PRESERVE" #1777556267 du -sh $PRESERVE #1777556267 echo #1777556267 echo "=== Phase 2: Git init in-place ===" #1777556267 git init -b main #1777556267 git remote add origin https://x-access-token:${GH_PAT}@github.com/thanhhai287/singhouse-wordpress.git #1777556267 git fetch origin main --depth=10 #1777556343 git init -b main #1777556352 git remote add origin https://x-access-token:${GH_PAT}@github.com/thanhhai287/singhouse-wordpress.git #1777556375 set -e # dừng ngay nếu có lỗi #1777556375 cd /home/adbcom/public_html #1777556375 TS=$(date +%Y%m%d-%H%M) #1777556375 PRESERVE=/home/adbcom/preserve-$TS #1777556375 echo "=== Phase 1: Preserve files sẽ bị overwrite ===" #1777556375 mkdir -p $PRESERVE #1777556375 cp wp-config.php $PRESERVE/ #1777556375 cp .htaccess $PRESERVE/ #1777556375 cp -r wp-content/themes/luxe $PRESERVE/luxe-theme #1777556375 cp -r wp-content/themes/luxe-child $PRESERVE/luxe-child-theme #1777556375 cp -r wp-content/plugins/luxe-core $PRESERVE/luxe-core-plugin #1777556375 echo "✓ Preserved at $PRESERVE" #1777556375 du -sh $PRESERVE #1777556375 echo #1777556375 echo "=== Phase 2: Git init in-place ===" #1777556375 git init -b main #1777556375 git remote add origin https://x-access-token:${GH_PAT}@github.com/thanhhai287/singhouse-wordpress.git #1777557531 set -e #1777557531 DEPLOY_DIR=/home/adbcom/public_html #1777557531 cd "$DEPLOY_DIR" #1777557531 pwd #1777557531 # Xoá .git cũ (từ lần init failed trước, không có commit nào) #1777557531 echo "=== Cleanup old .git in public_html ===" #1777557531 ls -la .git 2>&1 | head -3 #1777557531 rm -rf .git #1777557531 echo "✓ Old .git removed" #1777557531 # Init mới #1777557531 echo #1777557531 echo "=== Re-init clean ===" #1777557531 git init -b main #1777557531 git remote add origin "https://${GH_PAT}@github.com/thanhhai287/singhouse-wordpress.git" #1777557531 git fetch origin main --depth=10 #1777558363 git pull #1777558400 cd /home/adbcom/public_html && git pull #1777558772 cd /home/adbcom/public_html #1777558775 echo "=== Theme nào đang serve style? ===" #1777558775 curl -s https://singhouse.vn/ | grep -oE "themes/luxe[^/]*/style.css" | sort -u #1777558776 echo #1777558776 echo "=== Có luxe-child-style-css link không? ===" #1777558776 curl -s https://singhouse.vn/ | grep -c "luxe-child-style-css" #1777558776 echo #1777558776 echo "=== File site.js mới có thực serve không? ===" #1777558776 curl -s https://singhouse.vn/wp-content/themes/luxe-child/assets/js/site.js | grep -c "git pull deploy test" #1777558776 echo #1777558776 echo "=== Có singhouseData inline script không? ===" #1777558776 curl -s https://singhouse.vn/ | grep -c "singhouseData" #1777558777 echo #1777558777 echo "=== File site.js có được enqueue trong HTML không? ===" #1777558777 curl -s https://singhouse.vn/ | grep -c "luxe-child/assets/js/site.js" #1777558777 echo #1777558777 echo "=== Active theme từ WP options (qua wp-cli) ===" #1777558777 wp --path=/home/adbcom/public_html option get template #1777558778 wp --path=/home/adbcom/public_html option get stylesheet #1777558886 cd /home/adbcom/public_html #1777558886 echo "=== 1. Backup theme_mods hiện tại ===" #1777558886 wp option get theme_mods_luxe --format=json > /tmp/theme_mods_luxe_backup.json #1777558887 ls -la /tmp/theme_mods_luxe_backup.json #1777558887 head -c 200 /tmp/theme_mods_luxe_backup.json #1777558887 echo "..." #1777558887 echo #1777558887 echo "=== 2. Backup theme_mods_luxe-child (nếu có) ===" #1777558887 wp option get theme_mods_luxe-child --format=json > /tmp/theme_mods_luxe-child_backup.json 2>&1 #1777558888 cat /tmp/theme_mods_luxe-child_backup.json | head -c 200 #1777558888 echo #1777558888 echo "=== 3. Copy luxe → luxe-child ===" #1777558888 cat /tmp/theme_mods_luxe_backup.json | wp option update theme_mods_luxe-child --format=json #1777558889 echo "✓ Copied" #1777558889 echo #1777558889 echo "=== 4. Verify copy ===" #1777558889 wp option get theme_mods_luxe-child --format=json | head -c 200 #1777558889 echo "..." #1777558889 echo #1777558889 echo "=== 5. Activate luxe-child ===" #1777558889 wp theme activate luxe-child #1777558890 echo #1777558890 echo "=== 6. Verify active theme ===" #1777558890 wp option get stylesheet #1777558891 wp option get template #1777558892 echo #1777558892 echo "=== 7. Test HTML mới ===" #1777558892 sleep 2 #1777558894 echo "Active style serve:" #1777558894 curl -s https://singhouse.vn/ | grep -oE "themes/luxe[^/]*/style.css" | sort -u #1777558894 echo #1777558894 echo "Có luxe-child-style-css không (mong đợi 1):" #1777558894 curl -s https://singhouse.vn/ | grep -c "luxe-child-style-css" #1777558894 echo #1777558894 echo "Có site.js enqueue không (mong đợi 1):" #1777558894 curl -s https://singhouse.vn/ | grep -c "luxe-child/assets/js/site.js" #1777558895 echo #1777558895 echo "Có singhouseData không (mong đợi 1):" #1777558895 curl -s https://singhouse.vn/ | grep -c "singhouseData" #1777558895 echo #1777558895 echo "JQMIGRATE đã bị dequeue (mong đợi 0):" #1777558895 curl -s https://singhouse.vn/ | grep -c "jquery-migrate" #1777558896 echo #1777558896 echo "Legacy 'jQuery is working' đã biến mất (mong đợi 0):" #1777558896 curl -s https://singhouse.vn/ | grep -c "jQuery is working" #1777559198 git pull #1777559228 echo "=== HTML không còn defer trên tweenmax/swiper/bootstrap ===" #1777559228 curl -s https://singhouse.vn/ | grep -E "tweenmax|swiper|bootstrap" | grep -v "select" | grep -E "defer|<script" | head -5 #1777559229 echo #1777559229 echo "=== Tweenmax KHÔNG có defer (mong đợi 0 dòng có 'defer'):" #1777559229 curl -s https://singhouse.vn/ | grep "tweenmax.min.js" | grep -c "defer" #1777559229 echo #1777559229 echo "=== Masonry VẪN có defer (mong đợi 1):" #1777559229 curl -s https://singhouse.vn/ | grep "masonry.pkgd.min.js" | grep -c "defer" #1777559230 echo #1777559230 echo "=== Latest commit on prod:" #1777559230 git -C /home/adbcom/public_html log --oneline -1 #1777559744 git pull #1777560002 echo "=== 1. Verify commit pulled trên VPS ===" #1777560002 cd /home/adbcom/public_html && git log --oneline -1 #1777560002 # Mong đợi: fc4c815 #1777560002 echo #1777560002 echo "=== 2. Verify functions.php trên disk có code MỚI ===" #1777560002 grep -A 2 "defer_handles = array" wp-content/themes/luxe-child/functions.php | head -5 #1777560002 # Mong đợi: chỉ có 'luxe-child-site' trong array #1777560002 echo #1777560002 echo "=== 3. Verify HTML output thực sự — masonry CÓ defer attribute không? ===" #1777560002 curl -s "https://singhouse.vn/?nocache=$(date +%s)" | grep "masonry.pkgd" #1777560003 # Mong đợi: KHÔNG có 'defer' trong tag #1777560003 echo #1777560003 echo "=== 4. Check thứ tự script — masonry phải SAU jQuery ===" #1777560003 curl -s "https://singhouse.vn/?nocache=$(date +%s)" | grep -nE "jquery\.min\.js|masonry\.pkgd|gtapp\.min" | head -10 #1777560080 cd /home/adbcom/public_html #1777560080 echo "=== Reset OPcache ===" #1777560080 wp eval 'if (function_exists("opcache_reset")) { opcache_reset(); echo "✓ OPcache reset OK\n"; } else { echo "⚠️ opcache_reset not available\n"; }' #1777560081 echo #1777560081 echo "=== Verify HTML masonry KHÔNG còn defer (mong đợi: tag KHÔNG có chữ 'defer') ===" #1777560081 sleep 2 #1777560083 curl -s "https://singhouse.vn/?bust=$(date +%s)" | grep "masonry.pkgd" #1777560084 echo #1777560084 echo "=== Re-test gzip + cache headers vẫn OK ===" #1777560084 curl -sI "https://singhouse.vn/wp-content/themes/luxe/include/assets/js/masonry.pkgd.min.js?ver=6.9.4" | grep -iE "HTTP|content-encoding|cache-control" #1777560409 cd /home/adbcom/public_html #1777560409 echo "=== .git folder size ===" #1777560409 du -sh .git #1777560409 echo #1777560409 echo "=== .git/objects size ===" #1777560409 du -sh .git/objects #1777560409 echo #1777560409 echo "=== Top files trong .git ===" #1777560409 du -sh .git/* | sort -hr | head -10 #1777560975 cd /home/adbcom/public_html #1777560975 echo "=== Git status ===" #1777560975 git status --short #1777560975 echo #1777560975 echo "=== Credential helper file (size phải > 50 bytes) ===" #1777560975 ls -la $HOME/.git-credentials-singhouse 2>&1 | head -1 #1777560975 echo #1777560975 echo "=== Hook đã setup chưa ===" #1777560975 ls -la .git/hooks/post-merge 2>&1 | head -1 #1777560975 echo #1777560975 echo "=== Sizes BEFORE ===" #1777560975 du -sh .git #1777560975 du -sh /home/adbcom #1777561005 cd /home/adbcom/public_html #1777561005 echo "=== 1. Backup post-merge hook ===" #1777561005 mkdir -p /tmp/git-hooks-backup #1777561005 [ -f .git/hooks/post-merge ] && cp .git/hooks/post-merge /tmp/git-hooks-backup/ && echo "✓ Hook backed up" || echo "(no hook to backup)" #1777561005 echo #1777561005 echo "=== 2. Shallow fetch (chỉ commit hiện tại) ===" #1777561005 git fetch --depth=1 origin main #1777561007 echo #1777561007 echo "=== 3. Mark shallow boundary ===" #1777561007 git rev-parse origin/main > .git/shallow #1777561007 echo "Boundary: $(cat .git/shallow)" #1777561007 echo #1777561007 echo "=== 4. Align local main với fetched commit ===" #1777561007 git update-ref refs/heads/main origin/main #1777561007 echo #1777561007 echo "=== 5. Expire reflog ===" #1777561007 git reflog expire --expire=all --all 2>/dev/null #1777561007 git reflog expire --expire-unreachable=all --all 2>/dev/null #1777561007 echo #1777561007 echo "=== 6. Aggressive repack ===" #1777561007 git repack -ad --depth=1 --window=250 #1777561007 echo #1777561007 echo "=== 7. Prune unreachable objects ===" #1777561007 git prune --expire=now #1777561007 echo #1777561007 echo "=== 8. Final aggressive GC ===" #1777561007 git gc --prune=now --aggressive #1777561011 echo #1777561011 echo "=== 9. Restore hook ===" #1777561011 [ -f /tmp/git-hooks-backup/post-merge ] && cp /tmp/git-hooks-backup/post-merge .git/hooks/ && chmod +x .git/hooks/post-merge && echo "✓ Hook restored" || echo "(no hook to restore)" #1777561011 echo #1777561011 echo "=== AFTER — sizes ===" #1777561011 echo ".git folder:" #1777561011 du -sh .git #1777561011 echo "Top breakdown:" #1777561011 du -sh .git/* | sort -hr | head -5 #1777561011 echo #1777561011 echo "Total /home/adbcom:" #1777561011 du -sh /home/adbcom #1777561011 echo #1777561011 echo "=== Verify ===" #1777561011 echo "Git log (mong đợi: chỉ 1 commit fc4c815):" #1777561011 git log --oneline #1777561011 echo #1777561011 echo "Git status:" #1777561011 git status #1777561011 echo #1777561011 echo "Test future fetch không cần prompt auth:" #1777561011 git fetch --dry-run 2>&1 | head -3 #1777561012 echo #1777561012 echo "✅ Shallow conversion complete" #1777563905 cd /home/adbcom/public_html #1777563909 git pull #1777563954 echo "=== .git/HEAD phải là 404 ===" && curl -sI https://singhouse.vn/.git/HEAD | head -1 #1777563954 echo #1777563954 echo "=== .git/config phải là 404 ===" && curl -sI https://singhouse.vn/.git/config | head -1 #1777563954 echo #1777563954 echo "=== .claude/PRPs/changelog cũng phải là 404 ===" && curl -sI https://singhouse.vn/.claude/PRPs/changelog-2026-04-30.md | head -1 #1777563954 echo #1777563954 echo "=== SSL/ACME challenge vẫn phải work (200 hoặc 404 đều OK, KHÔNG được 404 từ rule) ===" #1777563954 echo "(Test này chỉ cần thiết khi Let's Encrypt renew SSL — bình thường .well-known/acme-challenge/ rỗng)" #1777563954 ls /home/adbcom/public_html/.well-known/ 2>&1 | head -3 #1777563954 echo #1777563954 echo "=== Site bình thường vẫn 200 ===" #1777563954 curl -sI https://singhouse.vn/ | head -1 #1777564044 git pull #1777564265 cd /home/adbcom/public_html #1777564269 echo "=== Trước xoá ===" #1777564269 ls -la $HOME/.git-credentials-singhouse #1777564269 echo #1777564269 echo "=== Show config credential helper hiện tại ===" #1777564269 git -C /home/adbcom/public_html config --local --get credential.helper #1777564269 echo #1777564269 echo "=== Xoá file credentials ===" #1777564269 shred -u $HOME/.git-credentials-singhouse 2>/dev/null || rm -f $HOME/.git-credentials-singhouse #1777564269 echo "✓ Credentials file deleted" #1777564269 echo #1777564269 echo "=== Xoá credential.helper config khỏi .git/config ===" #1777564269 git -C /home/adbcom/public_html config --local --unset credential.helper #1777564269 echo "✓ Config unset" #1777564269 echo #1777564269 echo "=== Verify ===" #1777564269 ls -la $HOME/.git-credentials-singhouse 2>&1 | head -1 # mong đợi: No such file #1777564269 git -C /home/adbcom/public_html config --local --get credential.helper 2>&1 || echo "(no credential.helper config — đúng)" #1777564269 echo #1777564269 echo "=== Bonus: xoá luôn các .git-credentials* khác (nếu có) ===" #1777564269 ls -la $HOME/.git-credentials* 2>/dev/null #1777564269 shred -u $HOME/.git-credentials 2>/dev/null && echo "✓ ~/.git-credentials xóa" #1777564377 ssh-keygen -t ed25519 -C "deploy@singhouse.vn" -f $HOME/.ssh/github_deploy -N "" #1777564392 cat $HOME/.ssh/github_deploy.pub #1777564493 cat >> $HOME/.ssh/config <<'CONF' Host github-singhouse HostName github.com User git IdentityFile ~/.ssh/github_deploy IdentitiesOnly yes CONF #1777564514 cd /home/adbcom/public_html #1777564521 git remote set-url origin git@github-singhouse:thanhhai287/singhouse-wordpress.git #1777564531 git fetch --dry-run 2>&1 | head -3 #1777564554 git pull #1777625679 cd /home/adbcom/public_html && git pull #1777627910 echo "=== Cache headers các loại asset ===" #1777627910 for url in "https://singhouse.vn/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" "https://singhouse.vn/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=6.0.1" "https://singhouse.vn/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=7.5" "https://singhouse.vn/wp-content/themes/luxe/include/assets/js/gtapp.min.js?ver=6.9.4" "https://singhouse.vn/wp-content/uploads/2024/11/sr1.png" ; do echo "URL: $url"; curl -sI "$url" | grep -iE "cache-control|expires" | head -2; echo "---"; done #1777629448 git pull #1777629617 curl -s "https://singhouse.vn/?bust=$(date +%s)" | grep -c "cdn.gtranslate.net" #1777629879 echo "=== Latest commit on prod ===" #1777629879 git -C /home/adbcom/public_html log --oneline -1 #1777629879 echo #1777629879 echo "=== Test 5 security headers (bypass cache) ===" #1777629879 curl -sI "https://singhouse.vn/?nocache=$(date +%s)" | grep -iE "strict-transport|x-frame|x-content|referrer-policy|permissions-policy" #1777629880 echo #1777629880 echo "=== Pull nếu chưa ===" #1777629880 cd /home/adbcom/public_html && git pull #1777629962 git diff .htaccess #1777630027 cd /home/adbcom/public_html #1777630027 # 1. Backup .htaccess (extra safety) #1777630027 cp .htaccess /home/adbcom/htaccess.backup-$(date +%Y%m%d-%H%M%S) #1777630027 ls /home/adbcom/htaccess.backup-* | tail -1 #1777630027 echo #1777630027 # 2. Stash local plugin-generated changes #1777630027 git stash push -m "litespeed-auto-rules" -- .htaccess #1777630027 echo "✓ Stashed" #1777630027 echo #1777630027 # 3. Pull #1777630027 git pull #1777630030 echo #1777630030 # 4. Verify pull thành công #1777630030 git log --oneline -3 #1777630030 echo "(mong đợi: c68503d ở top)" #1777630030 echo #1777630030 # 5. Verify .htaccess có security headers block #1777630030 echo "=== Security headers block trong .htaccess: ===" #1777630030 grep -A 20 "Security headers" .htaccess | head -25 #1777630030 echo #1777630030 # 6. Test headers ngay (LiteSpeed cache có thể vẫn cache HTML cũ — purge sau) #1777630030 curl -sI "https://singhouse.vn/?bust=$(date +%s)" | grep -iE "strict-transport|x-frame|x-content|referrer-policy|permissions-policy" #1777630042 git pull #1777630060 cd /home/adbcom/public_html #1777630060 wp litespeed-option set cache true # trigger re-save #1777630060 wp litespeed-purge all #1777630070 echo "=== LSCACHE block sau re-save ===" #1777630070 sed -n '/# BEGIN LSCACHE/,/# END LSCACHE/p' /home/adbcom/public_html/.htaccess | head -20 #1777630529 cd /home/adbcom/public_html && git pull && wp litespeed-purge all #1777630545 curl -sI "https://singhouse.vn/?bust=$(date +%s)" | grep -iE "content-security-policy|cross-origin-opener|cross-origin-resource" #1777630970 cd /home/adbcom/public_html && git pull && wp litespeed-purge all