Question

VB.NET code that will count the time you've been online at a particular website
Is it possible?  :s
 
I don't know where to start..
HELP PLEASE  :blush:
 
i was inspired by the android App - Checky that counts how many times you look at your phone.
And now I want to make a version which can be use in a PC.
Basically, my plan is that I want to record how long a user consumes his/her time on a website like Facebook in a day,
then it will notify/alert the user when it exceeds the given time (set by the user) where he/she can only visit the website..
 

sorry for poor explanation ...

4 answers to this question

Recommended Posts

  • 0

Sure.

 

 

Personally I'd first set a cookie with the time when they first visit and then in set intervals compare it with the current time.

 

Then display it with your preferred method.

 

If you want more than a session total, you will need to note the date too.

 

I think JavaScript would be more suitable for this, than VB.NET.

  • 0

How would you know that the user is actually looking at the page and not merely having it open in some tab, perhaps even having the window minimized? Sounds like something you'd do as a browser extension rather than a standalone application because you'd need to query some browser-specific APIs (if they exist). 

  • 0

At a guess, proxification of traffic to said website. There are a few ways to do that, some more complicated than others. Here's one way that may work:

A) Write a program that listens on port 80. This may conflict with other software such as Apache etc.

B) Append entry to hosts file to redirect requests from a website's primary DNS to the local loopback device: 127.0.0.1 Specificwebsite.com

C) Establish connection to real server on port 80 and forward requests to it, all the while recording activity, and potentially denying further requests if a specific condition is met (such as a time quota).

This topic is now closed to further replies.
  • Posts

    • OK, back to normal now! Ozzy Osbourne - Flying High Again (Official Music Video)  
    • The actual download size is ~130–180 MB, not 100 MB.
    • Big change of pace for me! Gunnar & the Grizzly Boys - Standard American (Official)  
    • draw.io Desktop 30.2.4 by Razvan Serea draw.io desktop is a downloadable security-first diagramming application that runs on Windows, MacOS and Linux. Creating diagrams in the desktop app doesn’t need an internet connection. This is useful when you are disconnected or when you must create diagrams in a highly secure environment, where data protection is of the utmost importance. When you use the draw.io desktop app, your diagrams will be stored on your local device. Because this is a stand-alone application, also designed to run offline, there are no interfaces to cloud storage platforms available. Of course, you can still store your diagrams in folders that are synchronised to your cloud storage if you wish. Easy-to-use diagram editor The draw.io apps work just like the office and drawing tools you are used to using. Drag and drop shapes from the shape libraries and drag to draw connectors between them. Drag connectors to add waypoints and set a precise shape and position, or let them reroute automatically. Double click and start typing to add a label to anything. Create tables and swimlane flows with a familiar tool. Style shapes and connectors with customisable palettes, sketch options, fonts and text formatting tools. Search for shapes, including in open-source icon libraries. Use our vast libraries of shapes and templates, organised into logical categories, to create a range of diagrams and infographics. Generate diagrams from text descriptions using our smart templates. Diagram faster with keyboard shortcuts. draw.io Desktop 30.2.4 changelog: Uses electron 42.4.1 Updates to draw.io core 30.2.4. Download: draw.io 64-bit | Standalone ~100.0 MB (Open Source) Download: draw.io 32-bit | ARM64 | ARM64 Standalone Links: draw.io Home Page | Project page @GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
    • First Post
      BizSAR earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      590
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      80
    4. 4
      Michael Scrip
      77
    5. 5
      Steven P.
      73
  • Tell a friend

    Love Neowin? Tell a friend!