What about it?
I had trouble to find a website that just shows me my IP infos.
All i wanted to have was my IP Address and some basic i...
For further actions, you may consider blocking this person and/or reporting abuse
Tried it and yeah, stuck on searching until disable adblocker, that's not good.
I made something similar, but built my own API that I get the data from and can search any IP if want to.
ipinfo.karate.monster
Thanks for the feedback Zoppatorsk, i just handle this by asking the user to disable adblocker.
Happy that you get it working with your own api, this is great!
Yeah, u must be running some scripts or something that the adblocker catches..
Like when I built my first fullstack site, a site for selling used computers and hardware, adblocker really did not like that i called things ad's and blocked most stuff.. haha..
Well, it was the API that was the primary thing, the site is just a demo frontend consuming it. U can make those API's in a super simple way if just use packages provided by the data provider but for me I download the data from different providers and store in a database.
Yeah, for what i saw, adblocker tries to block any script that can lead to privacy tracking. Obviously, an ip address is too private for uBlock 😅
Honestly, it's just a mini side project that i made to test the geolocation of an ip address and use it with react-leaflet. Nothing fancy, but i wanted to share it anyway.
But yeah, if i want to do a REST API to connect my frontend, i will use "ip" or "public-ip" node module and store that data in a mongodb.
Or maybe i'll try to get that ip with php and store it in a mysql db, but i need to work on it haha.
I checked the providers that you use for ipinfo.karate, did you paid for the service or the free versions suits your needs?
Also, Is it fast and without rate limiting?
ahh.. ok.. Yeah, my stuff does not have that problem as just using backend rendering with a template engine.
If u serve the frontend from node shld be able to just pull the users ip from the request similar to what i do.
There is not even need to store anything in a db, can just use the geolite2 or ip2loaction packages as those have either file based or in memory database built in.
I just use the free versions as it was just a hobby project.
My API-backend have no rate limiting implemented for now and also it's not available over internet, only my demo app that got access to it.
Speed is not an issue, I use their data, not their services. What takes longest is to fetch the static map images showing the location that I fetch. Can't control that as it's not on my server.
I have an old but cheap n fast enough machine (4x10cores, so 80threads n 192gb or so ram) co-located in a data center with gigabit internet that runs all my n my sons stuff.. cheaper to co-locate it then paying the electricity it consumes, haha..
Ok i understand, thanks for the reply.
Mapbox service is also interesting, but i prefer to have a map that the user can interact with instead of a static image.
I find react-leaflet to be a great react component to easily get a location marker on a basic map.
But i'm really curious to test your stack when i have the time :)