Results 1 to 11 of 11
  1. #1
    mfountain is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Question Can a Java App detect the web site I am visiting?

    Hi. I'm working with a Java developer who is new and I'm just trying to help him find some details.

    We have a Java App that needs to be able to detect the application(s) that are running and the web site(s) that are actively being visited.

    What libs or what methods would you recommend that we use to accomplish our goals?

    Thanks in advance!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Can a Java App detect the web site I am visiting?

    You can't write spyware in Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    mfountain is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Re: Can a Java App detect the web site I am visiting?

    Thanks for the feedback, but this is not for "spyware". We actually have a practical use for this internally.

    We were thinking we could use JNA, but I don't know enough about it, which is why I am asking here for your guidance.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Can a Java App detect the web site I am visiting?

    Call it by another name if you please but you can't write spyware in Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    mfountain is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Re: Can a Java App detect the web site I am visiting?

    It's for a training app to help people go from tutorial to tutorial (from a specified list). Each tutorial links to the next in the sequence, but we want the Java app to record the time it takes to do each tutorial (and which tutorial they are on) in an non-obtrusive way allowing them to use any browser they want to take the tests/training.

    We thought we could use Java to do this, but sounds to me like you think it's not possible? Or are you just jaded against something that looks and smells like spyware?

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Can a Java App detect the web site I am visiting?

    Can you modify the app to record what it does itself?
    Or how about a proxy server that all traffic goes through. It could record the traffic it sees.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Can a Java App detect the web site I am visiting?

    Do you understand the meaning of can't? I didn't say I wouldn't help you, I told you it can't be done.

    The correct approach would be for the tutorial, wherever it comes from, to incorporate its own time recording. If that can't be done the best you can do in Java is to write an application where the user clicks a button each time they move on to the next in the sequence.

    You can't write spyware in Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  8. #8
    mfountain is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Re: Can a Java App detect the web site I am visiting?

    db - I read into your replies a little bit of cynicism. Which is why I was trying to clarify our intentions.

    Norm - The tutorials are all 3-rd party, some free, some paid, we are aggregating them and simply wanted a simple way to help our team monitor their progress.

    We thought Java would be fine for this (so we can support Macs too), but sounds like it's not possible. I guess native code is what we will have to do. Bummer.

    Thanks for your help guys. (If you think of another work-around, I'm all ears.)

  9. #9
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Can a Java App detect the web site I am visiting?

    What about the proxy server approach?

  10. #10
    mfountain is offline Member
    Join Date
    Mar 2012
    Posts
    5
    Rep Power
    0

    Default Re: Can a Java App detect the web site I am visiting?

    Thanks for the suggestion Norm, I could see that as a possibility. Will have to do some more digging.

  11. #11
    MonkeyMan is offline Member
    Join Date
    Jan 2012
    Posts
    45
    Rep Power
    0

    Default Re: Can a Java App detect the web site I am visiting?

    I'm at awe with the attitude of some people... Someone asks for help, the guy basically shoots blame on them for trying to make spyware and says it can't be done without any kind of constructive approach as to why it can't be done.

    He repeats it once more, still with no constructive input and yet again suggests that they are making spyware, even if it by another name.

    Finally proceeds to insult their intellect, gives no evidence as to why it can't be done and finally gives a bit of constructive input for alternatives. Closing with yet another suggestion of OP's evil morals.

    And this person is a moderator? Welcome to the java-forums indeed!

Similar Threads

  1. Replies: 2
    Last Post: 11-30-2011, 07:36 AM
  2. Java Detect Remote Users
    By KOvitt in forum Advanced Java
    Replies: 3
    Last Post: 05-13-2011, 03:31 PM
  3. How to detect beep sound using java
    By dkas in forum New To Java
    Replies: 10
    Last Post: 02-09-2011, 11:07 PM
  4. Replies: 4
    Last Post: 06-30-2009, 11:31 PM
  5. New java site for beginers
    By windyawarnapura in forum Java Software
    Replies: 1
    Last Post: 03-14-2008, 06:02 PM

Posting Permissions

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