Jump to content


Photo

[SOLVED] How to use HTTP-REFERRER


  • Please log in to reply
2 replies to this topic

#1 Kryllster

Kryllster

    Advanced Member

  • Members
  • PipPipPip
  • 183 posts
  • LocationIndiana

Posted 18 June 2009 - 07:06 AM

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,
Kryllster

#2 GingerRobot

GingerRobot

    Advanced Member

  • Staff Alumni
  • 4,086 posts
  • LocationUK

Posted 18 June 2009 - 07:44 AM

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.

#3 Kryllster

Kryllster

    Advanced Member

  • Members
  • PipPipPip
  • 183 posts
  • LocationIndiana

Posted 18 June 2009 - 08:43 PM

Thank You for your reply. I think I may have a solution just needs testing. I kind of nknew it was bad from what I read on the internet but wanted to double check here.
Kryllster




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com