SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru kgtrip's Avatar
    Join Date
    Jun 2003
    Location
    Karplakistan
    Posts
    804
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Does remote image followed by SE bot?

    Hi mates,

    Say I made a script which at the end produces an image. I put this script in a file named im.php and upload it to my site www.site1.com. Now I go to another site www.site2.com and create a file named simple.html which over it I would like to see the image I created previously. so I write this HTML code
    PHP Code:
    <img src="http://www.site1.com/im.php"
    and put it inside simple.html file. Would a visiting bot by SE to www.site2.com would follow the image source, hence activating my script?

    BTW
    I'm doing all this hassle just to detect SE bots over remote domains
    It seems I only manage to capture "ordinary" user agents not SE ones
    Compare Hundreds of Web Hosting Plans

  2. #2
    I am obstructing justice. bronze trophy fatnewt's Avatar
    Join Date
    Jul 2002
    Location
    Ottawa, Canada
    Posts
    1,766
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perhaps, but not as you might expect. When a Search Engine spider visits site2.com, it's likely to see the image, and, if it indexes images, add the URL to its "to-crawl" list. It won't send a request for that image immediately, so this probably isn't an effective way to determine when and where a spider visited your site.

    You may be able to use this script to determine IF the PHP script is activated by a bot on another site, but since that bot won't be giving you a referring URL when it requests the script, you won't be able to use it to gain comprehensive Web usage metrics.
    Colin Temple [twitter: @cailean]
    Web Analyst at Napkyn


  3. #3
    SitePoint Guru kgtrip's Avatar
    Join Date
    Jun 2003
    Location
    Karplakistan
    Posts
    804
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK I was afraid of this scenario. Is there a way I can detect bots over remote sites?
    Compare Hundreds of Web Hosting Plans


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
  •