![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My server logs show skillions of requests for a nonexistent file, http://oakroadsystems.com/sharware/whistl19.zip snip Is it better to have "Forbidden", "gone", or something else entirely? |
#3
| |||
| |||
|
|
Why 400? That's for a bad request, bad on the level of HTTP. If the request is not malformed, then 400 seems inappropriate. |
#4
| |||
| |||
|
|
On Tue, 10 Aug 2004 18:59:04 -0400, Stan Brown the_stan_brown (AT) fastmail (DOT) fm> declared in comp.infosystems.www.authoring.site-design: My server logs show skillions of requests for a nonexistent file, http://oakroadsystems.com/sharware/whistl19.zip snip Is it better to have "Forbidden", "gone", or something else entirely? 400 seems the most logical to me. 403 is probably OK - technically it's not forbidden as such, but it certainly isn't gone, since presumably it was never there in the first place. |
#5
| |||
| |||
|
|
Actually it was. When sina.com kept downloading it many, many times a day, I changed its name and changed references to it in my site. |
|
(The robots.txt file had already assured that well-behaved spiders didn't index it.) While I believe site authors have a duty not to break links, in this case nobody would bookmark the ZIP file -- they would bookmark the "download" HTML file or more likely just download the ZIP and not bookmark anything. |
|
So I don't believe I broke bookmarks for any real users. |
#6
| |||
| |||
|
|
Stan Brown wrote: http://oakroadsystems.com/sharware/whistl19.zip Is it better to have "Forbidden", "gone", or something else "Mark Parnell" wrote: presumably it was never there in the first place. Stan Brown wrote: Actually it was. Ah, I didn't realize that. In that case, probably 410 is the right choice, unless there's some part of this I'm ignorant of. |
|
Stan Brown wrote: When sina.com kept downloading it many, many times a day, Had they hotlinked to it? |
|
If you don't mind my prying, what was the resource, why was it so popular, and why was that a problem for you? |
#7
| |||
| |||
|
|
If the requests appear to be malicious, then I'd just redirect them, and save your server the trouble of serving up an error page. Just send them to a non-existent server. Redirect /sharware/whilsl19.zip http://getlost.invalid Thank you! I had been bothered by the constant probes on our site for |
#8
| |||
| |||
|
|
Stan Brown wrote: Sorry, I don't understand "hotlinked" in this context. Can you explain please? To avoid generating 404 log entries (these groups are all in web forums of one kind or anohter), let's pretend that your domain is example.com instead of oakraodsystems. Now let's say that I put on my personal page (http://www.julietremblay.com/brian/) the following: Get free <a href="http://www.example.com/sharware/whistl19.zip">DOS audio software</a>. That's hotlinking. Unless I've received permission, I'm stealing bandwith from your domain, passing off your program as my content. |
#9
| |||
| |||
|
|
BTW, *please* change the tld in your redirect, unless you're sure that .pit will never exist. The "invalid" tld is set up to always be, well, invalid, and is thus an obvious choice. |
![]() |
| Thread Tools | |
| Display Modes | |
| |