301 yanıt 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: xms.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"> <title>XMS.com – Premium Domain</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://www.google.com/recaptcha/api.js?render=6LdI_wUrAAAAAKHmjVdDBPhyUmn3t4GUV226B34W"></script> <style> body { font-family: Arial, sans-serif; background: #f7f7f7; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 1rem; overflow-y: auto; } .container { background: #fff; padding: 2rem; box-shadow: 0 0 20px rgba(0,0,0,0.1); border-radius: 8px; width: 90%; max-width: 500px; box-sizing: border-box; } h1 { text-align: center; margin-bottom: 1rem; } form { display: flex; flex-direction: column; } input, textarea { margin-bottom: 1rem; padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; } button { padding: 0.75rem; background-color: #007BFF; border: none; border-radius: 4px; color: white; font-size: 1rem; cursor: pointer; } button:disabled { background-color: #cccccc; cursor: not-allowed; } button:hover:enabled { background-color: #0056b3; } .note { font-size: 0.9rem; color: #777; text-align: center; margin-top: 1rem; } </style> <script> // Set safe cookie to avoid firewall blocks document.cookie = "xms_form=1; path=/"; </script> </head> <body> <div class="container"> <h1>XMS.com</h1> <p id="formIntro" style="text-align:center;">This premium domain is available for acquisition. Please submit your inquiry below.</p> <form id="contactForm"> <input type="text" id="name" name="name" placeholder="Your Name" required> <input type="email" id="email" name="email" placeholder="Your Email" required> <textarea name="message" placeholder="Please enter your offer or questions here" rows="5" required></textarea> <input type="hidden" name="token" id="recaptchaToken"> <button type="submit" id="submitBtn" disabled>Send Inquiry</button> </form> <div id="formResponse" class="note" style="display:none;"></div> </div> <script> const siteKey = '6LdI_wUrAAAAAKHmjVdDBPhyUmn3t4GUV226B34W'; function validateFormInputs() { const name = document.getElementById('name').value.trim(); const email = document.getElementById('email').value.trim(); const isEmailValid = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); return name !== '' && isEmailValid; } function updateSubmitButtonState() { document.getElementById('submitBtn').disabled = !validateFormInputs(); } document.getElementById('name').addEventListener('input', updateSubmitButtonState); document.getElementById('email').addEventListener('input', updateSubmitButtonState); document.getElementById("contactForm").addEventListener("submit", function (e) { e.preventDefault(); grecaptcha.ready(function () { grecaptcha.execute(siteKey, { action: 'submit' }).then(function (token) { document.getElementById('recaptchaToken').value = token; const form = document.getElementById("contactForm"); const formData = new FormData(form); const responseBox = document.getElementById("formResponse"); const formIntro = document.getElementById("formIntro"); fetch("sendproposal.php", { method: "POST", body: formData, }) .then((res) => res.text()) .then((text) => { form.style.display = "none"; formIntro.style.display = "none"; responseBox.innerHTML = `<h2>Thank you!</h2><p>${text}</p>`; responseBox.style.color = "green"; responseBox.style.display = "block"; }) .catch((err) => { responseBox.innerText = "Something went wrong. Please try again."; responseBox.style.color = "red"; responseBox.style.display = "block"; }); }); }); }); </script> </body> </html>