HackMyIP

Free IP Address Widget

Add an IP checker to your website with one line of code. No signup, no API key, completely free.

Embed Code

Click to copy <script src="https://hackmyip.com/widget.js"></script>

Live Preview

Zero Config

No signup, no API key, no configuration. Paste the code and it works immediately.

Lightweight

Under 1KB. Loads asynchronously so it never slows down your page.

Dark Theme

Clean dark design that fits most websites. Shows IP address and approximate location.

Free Forever

No usage limits, no rate limiting for widget loads. Free for personal and commercial use.

FAQ

How do I add this to WordPress?
Add a Custom HTML block in your page editor and paste the embed code. It works in both the Block Editor (Gutenberg) and Classic Editor.
Does it track my visitors?
No. The widget makes a single API call to fetch the visitor's IP and location. No cookies, no tracking scripts, no data stored.
Can I customize the appearance?
The widget ships with a clean dark theme. For custom styling, use the free JSON API to build your own widget with full design control.