Results 1 to 4 of 4

Thread: bots (easy question)

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    1,723
    Thanks
    82
    Thanked 90 Times in 88 Posts

    Default bots (easy question)

    Hi, I created a small program to detect browser resolution as well as IP address and store the info in a file. Do bots have screen resolutions? I ask because some of the records have an IP address, but no screen resolution.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    This is a totale guess:
    Since many bots run off one server, and not a specific computer I would guess no. Unless they configure it like that. I would think that a bot if you php[ed] it, it would like this:
    PHP Code:
    <?php
    $infos 
    = array();
    $infos['surf'] = "Google.com/";
    $infos['ip'] = 10294//tells which IP to use
    $infos['screen_res'] = null;
    ?>
    Remember, the above is a guess.
    Jeremy | jfein.net

  3. #3
    Join Date
    Nov 2007
    Location
    USA
    Posts
    170
    Thanks
    8
    Thanked 22 Times in 22 Posts

    Default

    I would guess that bots don't have a screen resolution. I mean from what I've always thought bots don't need to "see" anything...so I would guess they don't even need a monitor, that they just are there to collect information.

    Just my 2 cents
    What is obvious to you might not be to another.


    My Site

  4. #4
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    1,723
    Thanks
    82
    Thanked 90 Times in 88 Posts

    Default

    What both of you are suggesting does make a lot of sense. Another possibility is that there is an error in my code. I altered it a bit to only record the stats if a browser resolution is detected, so the problem is largely solved for me. However, one way to check is if I knew the IP address of a bot and then check the address against what I have in my list and see if it has a resolution.

    I also noticed that my own IP address was recorded as not having a screen resolution. When that happens a cookie is generated so that that won't happen in the future and every successive return to the page will show that I do indeed have a resolution setting.

    For those curious the script is located here.

    It seems kinda dumb to me, but the javascript lines are copywritten. actually since most of the lines are not his, but mine maybe I should remove the copyright. Not sure.
    Last edited by james438; 10-22-2008 at 09:05 AM.

Bookmarks

Posting Permissions

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