Skip to content

Instantly share code, notes, and snippets.

@xenodesystems
Last active January 4, 2016 15:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xenodesystems/a4998f733127f7c098d3 to your computer and use it in GitHub Desktop.
Save xenodesystems/a4998f733127f7c098d3 to your computer and use it in GitHub Desktop.

calyphrox-logo

The Calyphrox IP Widget

This widget displays some info about a user that's visiting your site to him/her, such as his/her IP address, country, region, city, language, browser and operating system. It's 100% responsive and compatible with almost all the web browsers out there. With this widget you can have something really cool on your site at the same time you show your support for privacy and the Calyphrox project.

So, as you might have seen, we have a neat javascript widget which displays some information about the user that is visiting certain website based on his/her IP address. An Internet Protocol address is a numerical label assigned to each device (e.g., computer, printer, cellphone) participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host/network interface identification and location addressing.

calyphrox-widget

Leaving Wikipedia's jargon behind, let's talk about how to integrate our widget to your own website, it's actually fairly simple, just copy and paste the following line of HTML code where you'd like the widget to appear at your site:

<div id="calywidget" style="width: 300px;"><script type="text/javascript" src="https://spideroak.com/share/PBSW433EMVZXS43UMVWXG/78656e6f6465/var/CDN/xenodecdn/calyphrox/widget/widget.js"></script></div>

You can change the width of the parent container freely if you want or even place the widget inside any other div you'd like (not necessarily the "calywidget" one) as the widget it's 100% responsive and it will always adapt to the width of the parent container where it's placed and also will take an automatic height according to that width.

The script it's loaded from our Official CDN via HTTPS, when an update it's available (if you're linking from our CDN as you should); You'll get it automatically.

Is the widget violating anyone's privacy?

No, it isn't. al the data you see there is data your computer makes publicly available to all websites across the globe when accessing them.

Should I (or the users) be worried about these kind of data "leaking" out?

It depends. But because of that, we've created Calyphrox. You can use our free webproxy to browse the web anonymously at http://www.calyphrox.net, also there you'll find more info about this and other questions, in our "About & Terms" section of the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment