Skip to content

Easily get anybody's IP address who visits your website with 3 lines of javascript

Notifications You must be signed in to change notification settings

MeMasterMind/fetch-ip-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

fetch-ip-javascript

Easily get anybody's IP address who visits your website with 3 lines of Vanilla browser javascript.

fetch('https://api.ipify.org?format=json')
    .then(results => results.json())    
    .then(data => console.log(data.ip));

that's it!


Please help me by giving this repo a ⭐


this is just a code snippet to help people and for educational purposes. I am not responsible in any way of it's illicit or unintended use.

About

Easily get anybody's IP address who visits your website with 3 lines of javascript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published