datacenter-ip-checker/web/landing/index.html

254 lines
8.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Check API Data Center</title>
@@include('meta.html') @@include('link_deps.html')
</head>
<body class="bg-base-200 flex flex-col items-center min-h-screen">
@@include('nav.html')
<div class="flex-grow flex flex-col items-center justify-center">
<div class="py-10">
<div class="text-center">
<h1 class="text-5xl font-bold mb-5 text-base-content">
Check IP Data Center
</h1>
<p class="text-lg mb-8 text-base-content">
Detect and block requests from known data centers to prevent
malicious activities.
</p>
<div class="flex justify-center mb-6">
<input
id="ip-to-check"
type="text"
placeholder="Enter API address"
class="input input-bordered input-primary w-full max-w-xs"
/>
<button id="check-btn" class="btn btn-primary ml-2">Check</button>
</div>
<div>
<p class="text-sm text-base-content mb-10">
Try it out by entering an API address above.
</p>
</div>
<div>
<p id="results" class="text-base-content mb-10"></p>
</div>
</div>
@@include('price_card.html')
<div
class="bg-base-100 shadow-lg rounded-lg p-6 mt-10 w-full max-w-md mx-auto"
>
<h2 class="text-2xl font-bold mb-4 text-base-content">
Why Use Our API?
</h2>
<ul class="space-y-4 text-base-content">
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span
>Reliable and accurate detection of data center IP
addresses.</span
>
</li>
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span
>High request rate limit to support your application's
needs.</span
>
</li>
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span>Easy integration with your existing systems.</span>
</li>
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span>Affordable pricing with no hidden fees.</span>
</li>
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span
>Expert support to help you get the most out of our API.</span
>
</li>
<li class="flex items-start">
<svg
class="w-6 h-6 text-primary flex-shrink-0 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 13l4 4L19 7"
></path>
</svg>
<span
>Regular updates and improvements based on user feedback.</span
>
</li>
</ul>
</div>
<div
class="bg-base-100 shadow-lg rounded-lg p-6 mt-10 w-full max-w-md mx-auto"
>
<h2 class="text-2xl font-bold mb-4 text-base-content">FAQ</h2>
<ul class="space-y-4 text-base-content">
<li>
<h3 class="font-semibold">
How do I integrate the API with my application?
</h3>
<p>
To integrate our API with your application, you need to include
the provided x-api-key in your request headers.
</p>
</li>
<li>
<h3 class="font-semibold">
How accurate is the data center detection?
</h3>
<p>
Our data center detection is highly accurate. We maintain an
extensive database of IP addresses from major data centers. You
can view the full list here.
</p>
</li>
<li>
<h3 class="font-semibold">
What happens if I exceed my request limit?
</h3>
<p>
If you exceed your request limit, your requests will be
rejected. We provide response headers x-ratelimit-limit,
x-ratelimit-remaining, and x-ratelimit-reset to help you manage
your usage.
</p>
</li>
<li>
<h3 class="font-semibold">Is there a free trial available?</h3>
<p>
Yes, we offer a free trial that allows you to make 1 request per
second.
</p>
</li>
<li>
<h3 class="font-semibold">What kind of support is included?</h3>
<p>
Once you create an account, you can access our support team
directly through the chat feature in your dashboard.
</p>
</li>
<li>
<h3 class="font-semibold">How often is the data updated?</h3>
<p>
Our data is updated daily to ensure accuracy and reliability.
</p>
</li>
<li>
<h3 class="font-semibold">
Can I get a custom plan for higher request rates?
</h3>
<p>
Yes, we offer custom plans for higher request rates. Please
contact us to discuss your specific needs and we will tailor a
solution for you.
</p>
</li>
</ul>
</div>
</div>
</div>
@@include('footer.html') @@include('script_deps.html')
<script>
const resultsEl = document.getElementById("results");
document.getElementById("check-btn").addEventListener("click", () => {
const ip = document.getElementById("ip-to-check").value;
fetch(`/api/ip/${ip}`)
.then((response) => {
if (response.ok) {
return response.json();
}
response
.json()
.then(({ message }) => (resultsEl.innerHTML = message));
})
.then(({ datacenter }) => {
if (datacenter) {
resultsEl.innerHTML = `🤖 This IP is from ${datacenter}`;
} else {
resultsEl.innerHTML = `🧑‍💻 This IP is not from a datacenter`;
}
})
.catch((error) => console.log(error));
});
</script>
</body>
</html>