Skip to content

Latest commit

History

History
53 lines (35 loc) 路 1.83 KB

README.md

File metadata and controls

53 lines (35 loc) 路 1.83 KB

IP Data to Discord Webhook

With this JavaScript program you can log the IP of someone visiting your website and send IP information to your Discord Webhook.

馃憖 Preview

Example image.

The country flag changes to the country where the IP is located!

馃幀 Usage

Method 1 (CDN):

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>

Method 2 (Local):

Set up

Copy the project.

Change the variable webHookURL in index.js to your URL.

Redirect

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" />

Additional tip

If you want to, you can style the index.html file, so it doesn't look too suspicious.

馃搼 Annotations

License

This project is licensed under the MIT License.

Discord Mobile Preview