Jump to content

[SOLVED] How to use HTTP-REFERRER


Kryllster

Recommended Posts

How would I go about using http-referrer based on a session cookie. What Im trying to do is make a kind of modularized dungeon for a game that I have been working on from time to time and basically I want to have an entrance but be able to change wich dungeon module it goes to. The only thing I can think that might work is a session for that dungeon and the entrance would have some kind of config file setting the session then use that session as http referrer to go back to that entrance only. Does this make sense or am I barking up the wrong tree?

 

Thanks,

Link to comment
Share on other sites

I'm not sure i really follow exactly what you're trying to do, but it sounds like a bad idea. The referrer is sent by the user (well, their browser anyway) and, as such, can't be trusted. It could easily be spoofed, so using for some part of your game is a no-no really. Not only that, but browsers can be set up not to send the referrer and some firewalls block it -- so you could end up causing problems for legitimate users.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.