beh, basta che controllo se HTTP_REFERRER ha un host diverso dal tuo sito