Click here to Skip to main content
11,921,354 members (70,377 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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
Rate this: bad
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!
Rahul K Singh 23-Jan-13 6:06am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

URVISH_SUTHAR1 23-Jan-13 6:04am
we can easily crack this, correct ?
Rahul K Singh 23-Jan-13 6:06am
Yes you are right! Read first solution... OriginalGriff is totally correct...
URVISH_SUTHAR1 23-Jan-13 6:12am
True, check my provided solution and give your input :)
Rate this: bad
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...
Rixterz123 10-Apr-13 4:52am
Why So Many Capital-Lettered Words?
Ashok19r91d 21-Apr-13 6:21am
It just like your Comment... lol... :-)
Rixterz123 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
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 | :)

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

  Print Answers RSS
0 OriginalGriff 493
1 Dave Kreskowiak 220
2 phil.o 170
3 Sergey Alexandrovich Kryukov 157
4 KrunalRohit 134
0 OriginalGriff 7,036
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,286
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2015
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