-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathip.html
More file actions
88 lines (85 loc) · 4.96 KB
/
ip.html
File metadata and controls
88 lines (85 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>تبدیل دامنه به IP</title>
<style>
*{box-sizing:border-box;margin:0;padding:0}body{font-family:system-ui;background:#1a1a2e;color:#fff;line-height:1.6}.container{max-width:800px;margin:2rem auto;padding:2rem;background:#16213e;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.3)}.header{text-align:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #0f3460}.logo{font-size:2rem;color:#e94560}.dev-info{background:#0f3460;padding:1rem;border-radius:8px;margin:1rem 0}.input-group{display:flex;gap:1rem;margin-bottom:1.5rem}input{flex:1;padding:1rem;border:2px solid #e94560;border-radius:8px;font-size:1rem;background:#1a1a2e;color:#fff}button{background:#e94560;color:#fff;border:none;padding:0 2rem;border-radius:8px;cursor:pointer;font-weight:700;transition:.3s}button:hover{background:#d13551}.result{display:none;margin-top:2rem;background:#0f3460;padding:1.5rem;border-radius:8px}.ip-display{font-size:1.5rem;text-align:center;margin:1rem 0;padding:1rem;background:#1a1a2e;border-radius:8px;border:2px solid #e94560}.error{display:none;color:#e94560;padding:1rem;background:rgba(233,69,96,.1);border-radius:8px;margin-top:1rem}.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:2rem 0}.feature-item{background:#0f3460;padding:1rem;border-radius:8px;text-align:center}.footer{text-align:center;margin-top:2rem;padding-top:1rem;border-top:2px solid #0f3460;font-size:.9rem;color:#888}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">🌐 تبدیل دامنه به IP</div>
<p>سرویس اختصاصی مستر وب برای تبدیل دامنه به آدرس IP</p>
</div>
<div class="dev-info">
<h3>🚀 درباره توسعه دهنده</h3>
<p>👨💻 طراح و توسعه دهنده: @QOMSERVER</p>
<p>🌐 وبسایت شخصی: amirbasim.ir</p>
<p>📱 پشتیبانی: @mrwebsupport</p>
</div>
<div class="features">
<div class="feature-item">
<h4>⚡️ سرعت بالا</h4>
<p>پاسخگویی فوری به درخواستها</p>
</div>
<div class="feature-item">
<h4>🔒 امنیت</h4>
<p>محافظت از دادههای کاربران</p>
</div>
<div class="feature-item">
<h4>🎯 دقت بالا</h4>
<p>نتایج دقیق و قابل اعتماد</p>
</div>
</div>
<div class="input-group">
<input type="text" id="domainInput" placeholder="دامنه مورد نظر (مثال: api.api4dev.ir)" required>
<button onclick="convertDomain()">تبدیل</button>
</div>
<div id="error" class="error"></div>
<div id="result" class="result">
<h3>نتیجه:</h3>
<div id="ipAddress" class="ip-display"></div>
<div id="additionalInfo"></div>
</div>
<div class="footer">
<p>تمامی حقوق محفوظ است © مستر وب 2024</p>
<p>API های اختصاصی و حرفهای | پشتیبانی 24/7</p>
<p>ربات هوشمند: @haackerai_bot</p>
</div>
</div>
<script>
async function convertDomain() {
const domainInput = document.getElementById('domainInput');
const errorDiv = document.getElementById('error');
const resultDiv = document.getElementById('result');
const ipDisplay = document.getElementById('ipAddress');
const additionalInfoDiv = document.getElementById('additionalInfo');
const domain = domainInput.value.trim();
errorDiv.style.display = 'none';
resultDiv.style.display = 'none';
if (!domain) return;
try {
const response = await fetch(`https://api.api4dev.ir/domaintoip?domain=${encodeURIComponent(domain)}`);
const data = await response.json();
if (data.ok) {
ipDisplay.textContent = `آدرس IP: ${data.ip}`;
additionalInfoDiv.innerHTML = `
<p>وب سرویس : ${data.owner}</p>
<p>توسعه دهنده: @ٌqomserver</p>
`;
resultDiv.style.display = 'block';
} else {
errorDiv.textContent = 'خطا در دریافت اطلاعات';
errorDiv.style.display = 'block';
}
} catch (err) {
errorDiv.textContent = 'خطا در ارتباط با سرور';
errorDiv.style.display = 'block';
}
}
</script>
</body>
</html>