Domain Manage

Finding all locations of an image on a website?

Discussion in 'General Board' started by wb, Mar 30, 2010.

Thread Status:
Not open for further replies.
  1. wb United Kingdom

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,072
    Likes Received:
    34
    Is it possible to find all instances of an image on a website? A client has a large website with thousands of pages - an unknown amount of which contain a certain image (e.g. /images/example.jpg).

    The image is a blank one which they inserted when writing articles which just states "Insert Photo Here" as a reminder - as this was done a while ago they now are unsure which pages this was used on and therefore which pages need to have their images updated.

    It will take too long to look over all pages manually, so is there a website or tool which can scan all the pages on the server to find where these images are located?

    Cheers
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. jasman United Kingdom

    jasman Active Member

    Joined:
    Jul 2006
    Posts:
    725
    Likes Received:
    17
    The easiest way would be to download the whole website onto your pc and download wingrep from wingrep.com which lets you search folders and subfolders for a string - the filename. So you'd tell it to start at the web root of the downloaded site's file structure

    Another way would be to write or download a simple search engine script and let it crawl the site. Then search for the filename among the pages in the index.

    Another way is to write a script to analyse the server logs for a period as each time the image is displayed it would be recorded in the logs and there would be a page request log entry just before the image request which would have the same ip address. But that would only yield pages which have been visited in that period.
     
    Last edited: Mar 30, 2010
  4. Edwin

    Edwin Well-Known Member Exclusive Member

    Joined:
    Apr 2005
    Posts:
    8,460
    Likes Received:
    261
    If the site is well indexed by Google then use the following search:-

    site:site.com nameofjpeg

    In other words, if the site is at example.com and the graphic is called filler.jpg then you would search:-

    site:example.com filler.jpg

    That will return only the pages from "example.com" (that Google knows about) which have filler.jpg on them.
     
  5. jimm United Kingdom

    jimm Active Member

    Joined:
    Feb 2008
    Posts:
    688
    Likes Received:
    13
    If you have shell on the server use grep.
    Or if its using a CMS you may be able to use a sql command.
     
  6. bensd United Kingdom

    bensd Well-Known Member Exclusive Member

    Joined:
    Jan 2007
    Posts:
    4,956
    Likes Received:
    53
    You can also just search "site:domain.co.uk" in google images and it will bring up any images that are indexed.
     
Thread Status:
Not open for further replies.

Share This Page