Results 1 to 1 of 1
-
28th Nov 2010, 12:25 PM #1OPRespected DeveloperWebsite's:
X4B.orgHow to create a unique identifier for your users without using an IP
Ok so alot of people store IPs in their database, ive always viewed this as a bad practice. For a friend I coded this, it creates PSUDEO ip addresses that arent the users real IP but are unique to their normal IP yet dont identify them. This helps keep your users anonomous and also as a byproduct keeps you within the german privacy laws (if applicable)
PHP Code:function hash_ip($ip){
return long2ip(crc32($ip.ip2long($ip)));
}
echo hash_ip($_SERVER['REMOTE_ADDR']);
SplitIce Reviewed by SplitIce on . How to create a unique identifier for your users without using an IP Ok so alot of people store IPs in their database, ive always viewed this as a bad practice. For a friend I coded this, it creates PSUDEO ip addresses that arent the users real IP but are unique to their normal IP yet dont identify them. This helps keep your users anonomous and also as a byproduct keeps you within the german privacy laws (if applicable) function hash_ip($ip){ return long2ip(crc32($ip.ip2long($ip))); } echo hash_ip($_SERVER); Enjoy. If you need it more secure you can Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to create unique contend using domain names
By keyoian in forum DomainsReplies: 0Last Post: 14th Dec 2013, 08:41 PM -
[Hiring] hi i need help to create a web
By ferna4 in forum Completed TransactionsReplies: 3Last Post: 17th Nov 2011, 03:22 AM -
[Hiring] Create some Unique Stylish Error Pages
By xSwiftie in forum Completed TransactionsReplies: 8Last Post: 2nd May 2011, 03:30 AM -
Chat Messenger for Users within Same OS (RDP users)?
By LEVAC109 in forum General DiscussionReplies: 1Last Post: 28th Sep 2010, 03:37 AM -
Integrating VB USers with IRC Users ?
By danswano in forum vBulletinReplies: 0Last Post: 15th Jun 2010, 05:39 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...