301 http durum kodu, istenen kaynağın kalıcı olarak yeni bir URL'ye taşındığı anlamına gelir. Gelecekteki tüm istekler yeni adresi kullanmalıdır.
Tarayıcı kullanıcıyı otomatik olarak yeni adrese yönlendirecek ve arama motorları dizinlerini güncelleyecektir.
GET / HTTP/1.1 Host: 8xx.com Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>8XX</title> <script> // 自动生成二级域名并跳转 (function generateAndRedirect() { // 主域名数组 const domains = ['8xx.art', '8xx.asia']; // 添加多个主域名 const characters = 'abcdefghijklmnopqrstuvwxyz'; // 前缀仅字母 // 随机选择一个主域名 const randomDomainIndex = Math.floor(Math.random() * domains.length); const domain = domains[randomDomainIndex]; // 生成5个字符的二级域名 let subdomain = ''; for (let i = 0; i < 5; i++) { const randomIndex = Math.floor(Math.random() * characters.length); subdomain += characters[randomIndex]; } // 拼接完整的二级域名 const fullDomain = `${subdomain}.${domain}`; // 跳转到生成的 URL window.location.href = `http://${fullDomain}`; })(); </script> </head> <body> <!-- 页面加载后自动跳转 --> </body> </html>