# How to search for image names (engines that include html?)

**URL:** <https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676>\
**Category:** Factual Questions\
**Created:** [December 12, 2003, 10:29pm UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676 "2003-12-12T22:29:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![timgregory](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@timgregory](https://boards.straightdope.com/u/timgregory)\
**Post date:** [December 12, 2003, 10:29pm UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/1 "2003-12-12T22:29:15Z")

</div>

Hello!

I need to search my company’s website for a particular image, to see how many times it occurs throughout the site.

Because the file has a unique name, I thought, ‘easy! I’ll just type the file name into Google.’ But it looks like Google just searches the _text_ of an html page, and doesn’t include html.

Can anyone suggest how to find how many times an image occurs on a website? Perhaps a search engine that doesn’t filter out html code?

(Telneting in, and searching directly on the unix server is not an option, btw.)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)\
**Post date:** [December 12, 2003, 10:38pm UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/2 "2003-12-12T22:38:54Z")

</div>

Have you got (or can you get) the ability to FTP into the server? Then it would be a simple matter to check each .html or .htm document manually, or you could automate it with a PHP or Perl script.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [December 12, 2003, 11:10pm UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/3 "2003-12-12T23:10:57Z")

</div>

Probably too late for this idea to work for you now, but I always keep a complete mirror-image copy of all data for every web site on a folder in my local PC or network, down to the exact directory structure. Then I can use all the standard search tools from a PC, including some dynamite, lightning-fast DOS stuff.

I can’t imagine doing it any other way. In your case, would FTP-ing all data down to your local PC be an option? (Just in case PHP or perl isn’t in **timgregory’s** vocabulary, **Q.E.D.** )

---

<div class="post-metadata">

**Author:** ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)\
**Post date:** [December 12, 2003, 11:27pm UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/4 "2003-12-12T23:27:56Z")

</div>

Google has an image search feature. Go to their main page and click the “Images” tab or go [here](http://images.google.com). It appears to work based on filename and the advanced search allows you to specify a domain. It didn’t work on a quick search of an image name on one of my domains, so either they haven’t indexed me or it’s not really using filename and relying on alt tags or context.

Another option would be to use an offline browser like [WebWhacker](http://www.bluesquirrel.com/products/whacker/index.html) (commercial, but there are probably free alternatives with similar functionality). This might be easier if you don’t have FTP access to download the files since this kind of utility will spider a site and create a local copy for you. You could then search that local copy using a variety of tools.

---

<div class="post-metadata">

**Author:** ![timgregory](https://avatars.discourse-cdn.com/v4/letter/t/c57346/32.png) [@timgregory](https://boards.straightdope.com/u/timgregory)\
**Post date:** [December 13, 2003, 5:42am UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/5 "2003-12-13T05:42:50Z")

</div>

hey guys, thanks for the suggestions.

FTPing is not an option, sadly. For security reasons, users on my level don’t have direct access to any of the web servers – we access the pages through a file management tool (one without a search tool).

Keeping local copies through this tool would be cumbersome at best. Plus I just started this job, so I haven’t touched many of the pages yet!

Google’s image search didn’t work, either – although google can indeed find our pages (if i type in a phrase from any page).

I’ll check out WebWhacker and any similar (free) tools. Thanks!

In the mean time, if anyone else can think of a decent work around to my lame server access, I’d appreciate it! Thanks.

---

<div class="post-metadata">

**Author:** ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)\
**Post date:** [December 13, 2003, 5:52am UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/6 "2003-12-13T05:52:58Z")

</div>

Could you not contact the webmaster of your company’s site and ask him/her? I bet they could find out faster than you can.

---

<div class="post-metadata">

**Author:** ![Ryle\_Dup](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@Ryle\_Dup](https://boards.straightdope.com/u/Ryle_Dup)\
**Post date:** [December 13, 2003, 6:03am UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/7 "2003-12-13T06:03:26Z")

</div>

Search for webstripper, this will download the whole website based off the linked pages on the domain, you can use those files to see how many time the image appears.

---

<div class="post-metadata">

**Author:** ![Bill\_H](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Bill\_H](https://boards.straightdope.com/u/Bill_H)\
**Post date:** [December 13, 2003, 6:17am UTC](https://boards.straightdope.com/t/how-to-search-for-image-names-engines-that-include-html/218676/8 "2003-12-13T06:17:56Z")

</div>

Options I’d investigate, prioritized:

1. call the web person and ask either for the answer or access to a copy for the answer.

2. Write a perl script to spider through the pages and search for the key word you’re looking for. check out lwp-rget for a start.

3. Download the site, and grep through it. black widow is a good tool.

Note that for options #2 and #3, you’re relying on the site being easily spiderable. So if it has flash menus or complex javascript or whatever, it won’t work.
