Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hello Everyone,
 
I'm not sure if there is any way to detect clock manipulation in a standalone windows machine by which we can keep track of the application validity, e.g. the application should run only for 30days from from the date of activation.Is there any way to do it without connecting to internet?
 
Thanks for yr ideas and suggestions,, Smile | :)
Posted 23-Jan-13 0:41am
DEB4u589
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Reliably? No, nothing that can't be circumvented pretty easily. Even if you write a file, or a registry entry to hold the date and time it was last used, a simple VM could be set up to get round that without any work to find the file or key. Plus, a lot of countries automatically change the time twice a year, and the PC follows that. So you have to detect that that was a "legal" change or risk alienating legitimate users.
 
I've said it before, and I'll say it again: most of the time it is not financially worth while to invest much time in this - you need to convert every would-be-pirate into a customer and your time to protect it was cost less than the total income from them. Or you lose money by protecting your software... And don't make it upset legitimate users, or you lose those sales as well, and that can get very expensive!
  Permalink  
Comments
Rahul K Singh at 23-Jan-13 6:06am
   
5+
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi,
Simplest way is write somewhere in any file on system and on start of application calculate the date time. this is this basic approach. You can add multiple checks on it.
 
RKS
  Permalink  
Comments
URVISH_SUTHAR1 at 23-Jan-13 6:04am
   
we can easily crack this, correct ?
Rahul K Singh at 23-Jan-13 6:06am
   
Yes you are right! Read first solution... OriginalGriff is totally correct...
URVISH_SUTHAR1 at 23-Jan-13 6:12am
   
True, check my provided solution and give your input :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

It's Not Possible to Enclose Full Code for Your Issue, So I Suggest You to Save System Date and Time (in Registry, Config File, Database or in Any Other Files) When exiting Application.
 
So Now, When Opening Application You Just Check Current System Time with Last Run Time Using Simple IF Condition...
  Permalink  
Comments
Rixterz123 at 10-Apr-13 4:52am
   
Why So Many Capital-Lettered Words?
Ashok19r91d at 21-Apr-13 6:21am
   
It just like your Comment... lol... :-)
Rixterz123 at 17-May-13 13:02pm
   
That Is Why I Did It And Is Also Why I Am Doing It Now, You Silly Goose
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

you can use below option except validation dates
 
-Give any single day transaction
-Put limitation like user can open your app for 100 times only
-Many more depend upon your app functionality etc...
 
Might this help Smile | :)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 280
1 Sergey Alexandrovich Kryukov 279
2 CPallini 205
3 Maciej Los 162
4 Afzaal Ahmad Zeeshan 160
0 OriginalGriff 5,635
1 DamithSL 4,496
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100