Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2002
    Location
    Norway
    Posts
    239

    Unanswered: Current date from the internet

    How can i pick current date from the internet?
    Now my application compare a license date with the PC date, which makes it simple for the user to cheat me.

    Thanks for any advice

    sincerely
    Vestigo

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    The current date from WHERE on the internet???? There is not just 1 single date ...
    Back to Access ... ADO is not the way to go for speed ...

  3. #3
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Somebody used to have a program out there in VB for retrieving time/date from an atomic clock but although there's a gazzillion references to it online, the code has apparently been removed from the original site.

    The strategy I'd use to detect someone cheating by setting the clock back would be to:

    1) Have a small table or use a utility table if your app has one, writing the
    date you ship the program to the user to a field.

    2) Each time the db opens, check the current date against the last saved
    date.

    3) If the current date is equal to the saved date, open the db.

    4) If the current date is greater than the saved date, overwrite the saved
    date with the new date and open the db.

    5) If the current date is less than the last saved date, the user is diddling
    with his system clock! Don't open the db and throw up a message to
    contact you, reformat his hard drive, sacrifice his firstborn child, whatever!
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    i would add a second field to that table: hash(date & secret). if the date field doesn't rehash to the same hash ...diddling again.

    izy
    currently using SS 2008R2

  5. #5
    Join Date
    Nov 2002
    Location
    Norway
    Posts
    239

    Talking

    Thanks

    Missinglinq's proposal will do. I think I restrict myself to inform that the database can't be opened due to his "diddling"with the system clock.

  6. #6
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    then you are more trusting than i!

    the few thousand clock cycles to check hash(date & secret) make it much harder --- remember that you wanted to control for cheats, so you might as well control for cheats with an IQ above room temperature.

    at the very least usys the table - it is still hackable, but takes more effort and more knowledge.

    izy
    currently using SS 2008R2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •