Can you determine where a request originates from in PHP script?
I have a script that serves back a graphic. It includes a database request, but if I can be confident that the request for that graphic originated from my own server, I could skip the DB call and save myself a lot of DB chatter. Instead, I'd just serve back the graphic.
If I check the referrer and it includes my domain name, is that good?