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

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

Professional website development and design services

  • Home
  • Joomla! Products
    • Components
      • Community ACL
      • Droomla
      • jomCalendar
      • jomLike
      • JPhoto
      • Mortgage Calculators
      • WordPress
    • Plugins
      • Amazon Pack
      • Automated CSS3 Generator
      • Chimp Your Joomla!
      • JAutosearch
      • jomCDN
      • jomDefender
      • VirtueMart Age Restriction Plugin
    • jomSocial Add-ons
      • jomGive
    • Dreamweaver
      • Template Basics
    • JPhoto Add-ons
      • JPhoto Slideshow
    • cACL Add-ons
      • DOCman Plugin
    • CB Plugins
      • DOCman Downloads
    • Modules
      • YouTube Module
  • Templates
    • Joomla Themes
    • WordPress Themes
    • Drupal Themes
  • Services
    • Joomla! Services
      • Joomla! Install and Upgrading Services
      • Joomla! Website Design/Maintenance
      • Joomla! Custom Development
      • Joomla! Component Development
    • Template Services
      • Joomla! Template Conversion
      • Joomla! Template Design
      • PSD Template Design
    • Print Service
      • Print Design
  • Resources
    • 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
    • Operating System
    • Other
    • PHP
    • Print
    • Public News Articles
    • Recommended Software
    • security
    • Templates
    • Tools
    • Uncategorized
    • XHTML+CSS
  • Pages

    • Chicago ’09
    • Denver Expo / Fun
  • Archives

    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • May 2008
    • February 2008
    • January 2008
    • September 2007
    • April 2007
    • February 2007
    • December 2006
    • September 2006
    • August 2006
    • July 2006
    • June 2006
    • May 2006

Tag Cloud

'corePHP'  Android  app  Battle Creek  bugs  Christmas  CMS Expo  community  Community Acl  css  denver  discount  fix  holidays  html  ie  ie6  iOS  jomCDN  jomMobile  jomsocial  Joomla  Joomla! 1.5  Joomla! 1.6  Joomla Chicago  joomla extensions  joomla products  JPhoto  mobile  new products  new release  PHP  plugins  products  sale  security  small business  snippets  Steven Pignataro  success  template  tips  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!

Share this:
  • Digg
  • del.icio.us
  • Twitter
  • StumbleUpon
  • email
  • Facebook
  • Fark
  • LinkedIn
  • Technorati
  • Google Bookmarks
  • Reddit

This entry was posted on Thursday, February 18th, 2010 at 12:40 pm by Rafael Corral 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.

4 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.

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).

  • 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 othe

'corePHP' at a Glance

  • About 'corePHP'
  • Portfolio
  • SiteMap

Joomla! Products

  • Joomla! Components
  • Joomla! Modules
  • Joomla! Plugins
  • Dreamweaver Snippets

Services

  • Joomla! Install and Upgrading Services
  • Joomla! Website Design/Maintenance
  • Joomla! Custom Development
  • Joomla! Component Development
  • Joomla! Template Conversion
  • Joomla! Template Design
  • PSD Template Design
  • Print Design

Resources

  • Search Engine Submissions
  • 'corePHP' Partners
  • Blog

Contact

  • Contact Us
  • Support Desk
  • Forums

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

Affiliate Club
Become an affiliate!

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

  • Twitter
  • Plurk
  • Digg It
  • Facebook
  • LinkedIN
  • RSS