logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Many GET /icons hits ?
Author
Danll



Joined: 02 Aug 2013
Posts: 49
Location: USA, Houston

PostPosted: Fri 02 Aug '13 15:04    Post subject: Many GET /icons hits ? Reply with quote

Relative novice here, so pardon a simplistic question. In reviewing my logs, I keep coming across strings of GETs aimed at my file distribution site that strike me as a bit strange. These come in groups like

"GET /icons/blank.gif HTTP/1.1" 200 148
"GET /icons/back.gif HTTP/1.1" 200 216
"GET /icons/sound2.gif HTTP/1.1" 200 221
"GET /icons/layout.gif HTTP/1.1" 200 276

Always the same trivial gifs being requested.

They are clearly successful, but I have no idea why some users, who are accessing files I've put out for them to get, are also requesting these particular files in the same visit.

I think I understand what these icons are, but I have no clue why any user is intentionally (or unintentionally) GETting them.

Is this some kind of a security probe? I'm pretty sure they aren't bots, but are individual users.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3056
Location: Hilversum, NL, EU

PostPosted: Fri 02 Aug '13 15:34    Post subject: Reply with quote

They are on the web page they are accessing ?

Try in your httpd.conf:

<FilesMatch \.(?i:gif|jpg|png|ico)$>
Header append Cache-Control max-age=2592000
</FilesMatch>

This should cache for 30 days by the browser and not re-download.

Steffen
Back to top
Danll



Joined: 02 Aug 2013
Posts: 49
Location: USA, Houston

PostPosted: Fri 02 Aug '13 15:53    Post subject: Reply with quote

Quote:
They are on the web page they are accessing ?


No, those gif files are somewhere in the system. Haven't actually managed to locate them, but they're there somewhere.

Quote:
Try in your httpd.conf:


Thanks, but in trying this, what am I supposed to be accomplishing? Is this just going to make those requests not appear in my logs? Is it going to give the requesters an error? What does cache control have to do with what a remote URL is asking for?

My question was ... why are those files being asked for at all? There must be a simple reason, whether because of what they're asking for or because of what my system seems to be offering.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3056
Location: Hilversum, NL, EU

PostPosted: Fri 02 Aug '13 16:29    Post subject: Reply with quote

They just hitting your site because the gifs are on a web page they load.

Somewhere on the system ?
Hope you know what you are serving.

A browser does not hit a site whithin the 30 days, except when the user clears the browser cache.

There is google, try to search Header append cache-control max-age


Last edited by Steffen on Fri 02 Aug '13 17:44; edited 1 time in total
Back to top
Danll



Joined: 02 Aug 2013
Posts: 49
Location: USA, Houston

PostPosted: Fri 02 Aug '13 17:33    Post subject: Reply with quote

Let's try for one question.

What are these GET requests? Those GIFs are not on the web page they're loading. At least, I never put them there. I don't even know where on my system those icon files are located. Many people load the same web page, and their request doesn't come with those GETs. So there is something different about these requests.

Yes, I do hope I know what I'm serving. That's why I'm asking.

I searched Google got "GET /icons/back.gif" and got pointed to lots and lots of log pages (so this is a pretty common occurance!), and one or two people asking the same question that I am, though their question was not obviously answered.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3056
Location: Hilversum, NL, EU

PostPosted: Fri 02 Aug '13 19:16    Post subject: Reply with quote

These GET requests are just serving gif's from your site(s).

Try to figure out where the .gif's are om your site(s), that should be easy.

Btw. Do you run Apache ?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 02 Aug '13 19:27    Post subject: Re: Many GET /icons hits ? Reply with quote

Danll wrote:
They are clearly successful, but I have no idea why some users, who are accessing files I've put out for them to get, are also requesting these particular files in the same visit.


Specifically because of that. Any folder/directory that has no index.html|php|etc page will (with Option Indexes set in the configuration) show a listing of the files. These icons are next to the filename. These icons are located in Apache's icons folder.

see
conf/extra/httpd-autoindex.conf
http://httpd.apache.org/docs/2.4/mod/mod_autoindex.html
Back to top
Danll



Joined: 02 Aug 2013
Posts: 49
Location: USA, Houston

PostPosted: Fri 02 Aug '13 20:20    Post subject: Re: Many GET /icons hits ? Reply with quote

Well actually that's a great point. These are exactly the icons that Apache puts next to the filenames in a directory listing. So I guess if I'm offering a directory, and not just a file, I shouldn't be surprised that those icons are served with it.

It may be that those who are not asking for those icons are get GETting the file directly, instead of asking for a display of the directory that file is in.

I think that's the answer. Thanks to all!
Back to top
Danll



Joined: 02 Aug 2013
Posts: 49
Location: USA, Houston

PostPosted: Sat 03 Aug '13 20:48    Post subject: Reply with quote

I should add, as a P.S., that users who GET directories don't always try to GET these gifs from me. I have to assume that's because for these users, their browser has already cached these gifs, so there is no reason to ask for them.
Back to top


Reply to topic   Topic: Many GET /icons hits ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache