View previous topic :: View next topic |
Author |
Message |
SweepingOar Apprentice
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Wed Jan 30, 2008 8:39 am Post subject: Apache logs filling up with crap from ebay linked images |
|
|
Some people are using one of my spacer images (a 1x1 gif) in their ebay auctions and it's causing a lot of crap in my apache logs. I've blocked any images from being displayed from ebay referred pages using .htaccess (as covered here: https://forums.gentoo.org/viewtopic-t-634091-start-0-postdays-0-postorder-asc-highlight-.html), but that doesn't seem to solve the problem of the requests getting into my log files, it just lists 403 instead of 200 as the result code. Any simple way I can fix this? Thanks. _________________ -SweepingOar |
|
Back to top |
|
|
ragefan n00b
Joined: 01 Jun 2002 Posts: 63 Location: Roanoke, Virginia, USA
|
Posted: Wed Jan 30, 2008 7:10 pm Post subject: |
|
|
Change the name of your hotlinked spacer.gif and replace it with pr0n. Should solve the problem real fast.
Or your own banner ad. _________________ Registered linux user #256555 |
|
Back to top |
|
|
andreas_st Tux's lil' helper
Joined: 26 Dec 2007 Posts: 112 Location: 48N 16E
|
Posted: Wed Jan 30, 2008 7:28 pm Post subject: |
|
|
You don't even need to rename it. You could use mod_rewrite and redirect the request to another image depending on the referrer. |
|
Back to top |
|
|
SweepingOar Apprentice
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Wed Jan 30, 2008 9:12 pm Post subject: |
|
|
He's using it with height and width specified in the tag (something like 1x5) so replacing it doesn't bother him. Like I said, I'm already blocking it, but I want to keep the requests out of my log files. _________________ -SweepingOar |
|
Back to top |
|
|
andreas_st Tux's lil' helper
Joined: 26 Dec 2007 Posts: 112 Location: 48N 16E
|
Posted: Thu Jan 31, 2008 3:57 am Post subject: |
|
|
Did you contact the ebay seller? That's what I would try first.
As soon as the request comes to your web server it usually goes into the log file. I don't know how to prevent this. You could try to block the request before it reaches your web server by using a reverse proxy but I really would not go that far. |
|
Back to top |
|
|
SweepingOar Apprentice
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Thu Jan 31, 2008 4:39 am Post subject: |
|
|
Yeah, I contacted him and he was polite and said he'd take care of it, but really, what does he care? _________________ -SweepingOar |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu Jan 31, 2008 7:56 pm Post subject: |
|
|
Tell eBay the pixel is a copyright image and you want them to stop him stealing it. |
|
Back to top |
|
|
SweepingOar Apprentice
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Thu Jan 31, 2008 8:28 pm Post subject: |
|
|
That actually might work, sadly enough. _________________ -SweepingOar |
|
Back to top |
|
|
|