• Login
  • Register
  • Account
  • About 'corePHP'
  • Portfolio
  • SiteMap
  • Careers

Joomla! Development, Professional Joomla! Templates, Components, Extensions and Plugins — 'corePHP'

Professional website development and design services

  • Home
  • Joomla! Products
    • Components
      • Community ACL
      • Droomla
      • Fav
      • jomCalendar
      • JPhoto
      • Mortgage Calculators
      • WordPress
    • Plugins
      • Amazon Pack
      • Automated CSS3 Generator
      • Chimp Your Joomla!
      • jomCDN
      • jomDefender
      • VirtueMart Age Restriction Plugin
    • JPhoto Add-ons
      • JPhoto Slideshow
    • cACL Add-ons
      • DOCman Plugin
    • CB Plugins
      • DOCman Downloads
    • Modules
      • YouTube Module
  • Services
    • Joomla Services
      • Joomla! Development
      • Joomla! Design
      • Joomla! Install and Upgrade
    • WordPress Services
      • Wordpress Development
      • Wordpress Design
      • Wordpress Install and Upgrade
    • Drupal Services
      • Drupal Development
      • Drupal Design
      • Drupal Installations
  • Resources
    • Accessibility Report
    • Affiliate Club
    • Search Engine Submissions
    • 'corePHP' Partners
  • Blog
  • Support
    • Submit Ticket
    • Community Forums
  • Contact Us

Search the Blog

Categories

  • 'corePHP'
  • 'corePHP' Products
  • Accessibility
  • Dreamweaver
  • Expos
  • Flash
  • Graphics
  • Javascript
  • Joomla
  • Marketing
  • Mobile
  • MySQL
  • Operating System
  • Other
  • PHP
  • Print
  • Public News Articles
  • Recommended Software
  • security
  • SEO
  • Templates
  • Tools
  • Uncategorized
  • WordPress
  • XHTML+CSS

Pages

  • Chicago ’09
  • Denver Expo / Fun

Archives

Tag Cloud

'corePHP' Android app Battle Creek blogging bugs Christmas CMS Expo Community Acl css discount fix html ie ie6 iOS jomCDN jomMobile jomsocial Joomla Joomla! 1.5 Joomla! 1.6 Joomla Chicago joomla extensions joomla products joomla sale JPhoto marketing mobile new products new release PHP plugins products sale security small business snippets Steven Pignataro template tips updates WordPress WordPress MU youtube

'corePHP' Blog


Keep up to date on what's happening at 'corePHP'

« Community ACL – 1.2
Come to the CMS Expo 2010! »

Hardcore Javascript browser & computer fingerprinting

This post contains a POC (Proof of concept) on how to detect if a user is using the same computer as they have previously used before. This can be useful if you want to register a user’s computer for a certain functionality that your website may have. It can also be used to only allow one computer to view private content of a site and has many other applications aside from being really cool!

The way the script works, it has functions to retrieve the following:

  • Browser type
  • Display width & height, color depth and available height
  • The plugins that are installed on the browser
  • The operating system the browser is running on

With these four pieces of information you have the option to MD5 hash them, which is what I recommend as it is shorter and easier to store in a database.

Please download the files from here. Two files are needed if you want to use the MD5 encryption.

<script src="/md5.js" type="text/javascript"></script>
<script src="/detector.js" type="text/javascript"></script>

To get all of the above information about the browser in one neat string with separators, call this JavaScript function:

$fingerprint = pstfgrpnt();

To get the values MD5 hashed, simply pass true through as a parameter.

The index.html file on the download includes a simple example.

That is it! Enjoy!

This entry was posted on Thursday, February 18th, 2010 at 12:40 pm by rafa and is filed under Javascript, Operating System. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

7 Responses to “Hardcore Javascript browser & computer fingerprinting”

  1. metalaureate says:
    March 12, 2010 at 9:32 am

    Marvellous, thank you, just what I was looking for. Spooky timing. Works like a charm.

  2. jesse says:
    July 20, 2010 at 9:21 pm

    Can you please relink the script source? I’m getting a 404 error… This looks very promising for something I’m attempting. Thanks!

  3. Rafael Corral says:
    July 21, 2010 at 9:35 am

    jesse,

    I updated the link on the post.

    Enjoy.

  4. King of ♣ says:
    January 26, 2011 at 5:10 am

    Hi,

    I have seen a little error on the index.html file. To make components detection on IE, the script tag must be include befroe to close the tag.

    Whatever, very usefull script, thanks.

  5. Step-thru on my WordPress plugin StaRate | Jason Fang's Simple Site says:
    March 8, 2013 at 2:16 pm

    [...] 2. I also found a nice piece of javascript code to detect the browser signature by combining browser type (browser agent), display width&height, color depth and available height, the plugins that are installed on the browser and operating system information. The credit is given to “http://www.corephp.com/blog/hardcore-javascript-browser-and-computer-fingerprinting/#.USzx0leeYcs“. [...]

  6. Disabled people Dating says:
    May 9, 2013 at 6:37 am

    Howdy! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My blog looks weird when browsing from my apple iphone. I’m trying
    to find a theme or plugin that might be able to resolve this problem.
    If you have any suggestions, please share.
    Appreciate it!

  7. Michael Pignataro says:
    May 9, 2013 at 9:20 am

    Please take a look at http://jetpack.me/ and you will be able to set up your mobile site with ease using this system.

    Best,
    Michael Pignataro

Leave a Reply

Click here to cancel reply.

User Information

Message


'corePHP' Blog is proudly powered by WordPress. Joomla! extensions by 'corePHP'
Entries (RSS) and Comments (RSS).

'corePHP' at a Glance

Policy Statement

  • Terms of Service
  • Refund Policy
  • Cancel Subscription

Contact Us

(269) 979-5582
62 East Michigan Ave.
Suite 202
Battle Creek, MI 49017

Join Our Mailing List

Get $100 off a 3-Day registration at
CMS Expo 2013! Sponsored by
corePHP! Just use the code:
CMSX61727 when you register!

©2012 'corePHP' All Rights Reserved – Designed by 'corePHP'

  • Twitter
  • Find us on Google+
  • Digg It
  • Facebook
  • LinkedIN
  • RSS