激活后若提示无效,多为软件二次回连校验所致,按下方屏蔽方案处理即可
可能原因如下:
为避免软件连接远程服务器导致再次失效或异常,建议进行以下屏蔽操作。
Hosts 文件位置:
C:\Windows\System32\drivers\etc\hosts/etc/hosts127.0.0.1 www.youtusoft.com 127.0.0.1 youtusoft.com 127.0.0.1 hostbuf.com 127.0.0.1 www.hostbuf.com 127.0.0.1 dkys.org 127.0.0.1 tcpspeed.com 127.0.0.1 www.wn1998.com 127.0.0.1 wn1998.com 127.0.0.1 pwlt.wn1998.com 127.0.0.1 backup.www.hostbuf.com
101.32.72.254 45.56.98.223 193.9.44.7 103.99.178.153 47.76.185.223
Windows 防火墙设置步骤:
<#
.SYNOPSIS
FinalShell 自动屏蔽验证脚本
自动管理员权限 | 精准写入 Hosts | 强制防火墙拉黑 IP | 可重复运行
#>
# 强制以管理员身份运行
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Start-Process PowerShell -ArgumentList "-NoProfile","-ExecutionPolicy Bypass","-File","`"$($MyInvocation.MyCommand.Path)`"" -Verb RunAs
exit
}
# === 配置区域 ===
$hostsPath = "$env:SystemRoot\System32\drivers\etc\hosts"
$domains = @(
"www.youtusoft.com",
"youtusoft.com",
"hostbuf.com",
"www.hostbuf.com",
"dkys.org",
"tcpspeed.com",
"www.wn1998.com",
"wn1998.com",
"pwlt.wn1998.com",
"backup.www.hostbuf.com"
)
$ips = @(
"101.32.72.254",
"45.56.98.223",
"193.9.44.7",
"103.99.178.153",
"47.76.185.223"
)
# === 写入 Hosts ===
Write-Host "`n=== 正在写入 Hosts 屏蔽域名 ===" -ForegroundColor Cyan
foreach ($domain in $domains) {
$entry = "127.0.0.1 $domain"
$exists = [bool](Select-String -Path $hostsPath -Pattern "^127.0.0.1\s+$domain" -Quiet -ErrorAction SilentlyContinue)
if (!$exists) {
Add-Content -Path $hostsPath -Value $entry -Encoding UTF8
Write-Host "已添加: $domain" -ForegroundColor Green
} else {
Write-Host "已存在: $domain" -ForegroundColor Gray
}
}
# === 强制刷新 DNS ===
Write-Host "`n=== 刷新 DNS 缓存 ===" -ForegroundColor Cyan
ipconfig /flushdns | Out-Null
ipconfig /registerdns | Out-Null
Write-Host "DNS 已刷新" -ForegroundColor Green
# === 防火墙拉黑 IP ===
Write-Host "`n=== 正在添加防火墙出站规则 ===" -ForegroundColor Cyan
foreach ($ip in $ips) {
$ruleName = "Block_IP_$ip"
Get-NetFirewallRule -DisplayName $ruleName -ErrorAction SilentlyContinue | Remove-NetFirewallRule -ErrorAction SilentlyContinue
New-NetFirewallRule -DisplayName $ruleName `
-Direction Outbound `
-RemoteAddress $ip `
-Action Block `
-Enabled True `
-Profile Any `
-ErrorAction Stop | Out-Null
Write-Host "已屏蔽 IP: $ip" -ForegroundColor Green
}
# === 完成 ===
Write-Host "`n全部操作完成!域名 + IP 已双重屏蔽" -ForegroundColor Green
Write-Host "建议重启浏览器 / 相关软件生效" -ForegroundColor Yellow
Write-Host "`n按任意键退出..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
# 删除 hosts 规则
$hostsPath = "$env:SystemRoot\System32\drivers\etc\hosts"
(Get-Content $hostsPath) | Where-Object {
$_ -notmatch "youtusoft|hostbuf|dkys|tcpspeed|wn1998"
} | Set-Content $hostsPath
# 删除防火墙规则
Get-NetFirewallRule | Where-Object {
$_.DisplayName -like "Block_IP_*"
} | Remove-NetFirewallRule
ipconfig /flushdns
Write-Host "已恢复默认设置"
#!/bin/bash
HOSTS_FILE="/etc/hosts"
DOMAINS=(
"www.youtusoft.com"
"youtusoft.com"
"hostbuf.com"
"www.hostbuf.com"
"dkys.org"
"tcpspeed.com"
"www.wn1998.com"
"wn1998.com"
"pwlt.wn1998.com"
"backup.www.hostbuf.com"
)
echo "写入 hosts..."
for domain in "${DOMAINS[@]}"; do
if ! grep -q "$domain" $HOSTS_FILE; then
echo "127.0.0.1 $domain" | sudo tee -a $HOSTS_FILE
fi
done
echo "刷新 DNS..."
sudo systemctl restart NetworkManager 2>/dev/null
echo "完成!建议重启软件"
#!/bin/bash
HOSTS_FILE="/etc/hosts"
DOMAINS=(
"www.youtusoft.com"
"youtusoft.com"
"hostbuf.com"
"www.hostbuf.com"
"dkys.org"
"tcpspeed.com"
"www.wn1998.com"
"wn1998.com"
"pwlt.wn1998.com"
"backup.www.hostbuf.com"
)
echo "写入 hosts..."
for domain in "${DOMAINS[@]}"; do
if ! grep -q "$domain" $HOSTS_FILE; then
echo "127.0.0.1 $domain" | sudo tee -a $HOSTS_FILE
fi
done
echo "刷新 DNS..."
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
echo "完成!建议重启软件"