IP Address Widget

MULTI DEVICE: all devices icon white

Copy & paste our IP Address Widget:

<script src="https://widget.vpn.com/vpn-widget.js"></script>

<div
  class="vpn-widget"
  type="geoip/ip"
></div>

How To Embed Our IP Address Widget

To embed a widget you must first include this line of code one time in your web page:

  <script src="https://widget.vpn.com/vpn-widget.js"></script>

To place an embeddable widget in your web page create a div with class=”vpn-widget” and type=”[widget name]”


  <div
    class="vpn-widget"
    type="geoip/ip"
  ></div>

Optional Attributes

  • class – You may assign any additional css classes to the containing div as you’d like.
  • style – Because the widget is embedded in a <div> element you may specify your own styling for the contents of that div.
  • width – To size the widget specify the width attribute. The height will be calculated based on the width specified.
  • lang – Translate the widget to a specific language e.g. en, it, es.

Internationalization

By default the browser language will be used to translate each widget. You may override this with the `lang` optional attribute.

IP Address Widget Styling

Widgets contain their own individual styling but you can use CSS to extend and override those styles. Widgets are wrapped in their own div which will be placed inside the div on your web page.

For instance, to change the widget title to red do so in a style and assign the class to your containing div:


  <style>
    .red-header header {
        color: red;
    }
  </style>

  <div class="vpn-widget red-header" type="geoip/ip">Loading...</div>
Loading...

Use the !important css directive to do a hard override of any css style.

The text in the image background says, IP Address Widget on VPN.com
The Text and background in the image says, IP Address and several number IPs in background

FREQUENTLY ASKED QUESTIONS

What is an IP Address Widget?

A widget that detects and displays the IP address of a user’s device. An IP address is a unique identifier for devices on the Internet or a local network used to track online activity and behavior.

Who needs an IP Address Widget?

Anyone who wants to allow visitors of their website to view their device’s IP Address.

Why should I use an IP Address Widget?

Internet users often aren’t aware of the methods used to track their online activity and behaviors. An IP Address Widget is a simple, effective way to show people how easy it is for anyone to identify their device via its IP Address.

How do I use an IP Address Widget?

You use the widget by embedding it wherever you would like it to appear on your website or blog. Once embedded, the widget will begin working as intended without any further maintenance from you.

Does this IP Address Widget cost anything?

No! All widgets on our website are 100% free for you to use.

Can I embed an IP Address Widget?

Yes! Follow the instructions above to embed our widget to your website or blog.

How do I embed this IP Address widget?

Follow the instructions above to embed our widget to your website or blog. It’s as simple as copy and pasting the code we’ve provided.

Is it safe to embed an IP Address Widget?

Yes! It is perfectly safe to embed our IP Address Widget or any other widget from VPN.com.

How long does it take to embed an IP Address Widget?

It takes less than five minutes to install this widget. It only takes as long as it takes you to copy and paste the code to your website or blog.

Do I need a developer to embed this IP Address Widget?

No, you don’t need a developer to embed this widget. We’ve provided everything you need to embed the widget on this page.

Can I embed an IP Address Widget in WordPress?

Yes! Our widgets are compatible with all WordPress websites.

Can I embed an IP Address Widget in HTML?

Yes, you can embed all of our widgets in HTML. We’ve provided the necessary HTML code along with instructions above.