/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Detect location in PHP?

I made a game in Flash with a php highscores list. To keep people from cheating, I’m loading a php file captcha (imagepng) as an image in the game with loadmovie. However I need a way to keep people from accessing the captcha file from outside the game so people can’t find it and send any posts from outside the game with other methods. My plan would involve a window.location type of thing in the captcha, so that it would only show the image if the location is the same URL as the game.

Is there any way to accomplish this, or any better ideas?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@jacjil2authorSep 27.2008 — Never mind, I figured it out you guys.

If you are wondering I just added a special session variable to the page the game is embedded on and a few other conditions for security.
×

Success!

Help @jacjil2 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...