Forum Moderators: open
Like this: <img src="http://www.mysite.com/?blah=foobar">.
Is there some way to detect if this has been requested by an img tag?
Or even an link or script tag?
I Want to prevent this or alteast do something about this.
Thx in advance.
But i think this is a little bit different.
My problem is, it isn't an image that is being loaded.
It is a URL to a normal site.
There currently is running some contest, and ppl are using the <img> to abuse this to win the contest.
Now i hoped there whas somekind of check to see if the URL requested comes from within a <img> or something.
The site already is protected against hotlinking of images.
Thx.
The scenario is, a certain site allows you to submit your own site for a link trade then adds you to the list. The more hits you send, the higher up the list you go. The idea being the closer you are to the top the more hits you will get back.
The easiest way to cheat that system is to load the targeted site in an iframe or as an image. That way every user that hits your site automatically sends a hit to the tracking list without the user actually having to click a link.
Blocking IPs or even just blocking the domains of offending sites can become a full time job for larger sites. I know a little Javascript can save you from the iframe cheat - but I'm not aware of anything against the image trick.