Author Topic: Single use URL's?  (Read 1714 times)

WaveJam

  • Jr. Member
  • **
  • Posts: 63
    • WaveJam Technologies
Single use URL's?
« on: October 14, 2009, 04:57:26 PM »
Forgive thyself if this has been covered. Didn't see it though. Looking for a way to generate some sort of one time use url to activate an IO command. You know, a disposable url that can only be used once.

Why? Because I'd like to allow someone (actually multiple people) permission to run a command ONCE and only once.

Any ideas?
Pete Raumann
WaveJam Technologies
http://www.wavejam.com
http://www.tankedcam.com

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Single use URL's?
« Reply #1 on: October 14, 2009, 07:19:40 PM »
i got it...

have two pages. the first one checks for a cookie on the users computer. if it exists, it redirects to your home page. if it doesn't, then it goes to a page with the iobridge code.

you could also use the same idea, but instead of a cookie check,write the ip address to a file, and then check if it exists. the first would be easier to implement, but the second is more secure. your call.
zero*gx | imagineering solutions

WaveJam

  • Jr. Member
  • **
  • Posts: 63
    • WaveJam Technologies
Re: Single use URL's?
« Reply #2 on: October 15, 2009, 07:11:23 AM »
Thanks zerogx...

But whats to stop someone from bookmarking the second page? Or even saving a copy of that HTML locally and reusing. Maybe I should have named this something other than single use "URL's". I think I'm looking for something similar to one time use, randomly changing widget embed tags. I know its a long shot. But I thought I'd ask.

Thanks.
Pete Raumann
WaveJam Technologies
http://www.wavejam.com
http://www.tankedcam.com

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Single use URL's?
« Reply #3 on: October 15, 2009, 09:53:15 PM »
maybe incorporate into one page... have it check for the unique identifier (cookie/database record). then have it enable the code... like have a hidden css element come up.


r to continue my idea, use php, with session variables in the url. database records the usage of the variable and the ip address. have the php code check the referrer/hosted location to prevent offsite usage. after the variable is used, it no longer is valid.

if i may ask, what are you trying to do?
zero*gx | imagineering solutions

zero*gx

  • Full Member
  • ***
  • Posts: 116
    • zero*gx
Re: Single use URL's?
« Reply #4 on: October 15, 2009, 09:54:30 PM »


if i may ask, what are you trying to do?

clarification: if i may ask, what are you trying to protect (the function)? itd be somewhat easier if i knew what the goal was.
zero*gx | imagineering solutions

noelportugal

  • Newbie
  • *
  • Posts: 35
    • http://blogs.oracle.com/noelportugal/
Re: Single use URL's?
« Reply #5 on: October 16, 2009, 12:02:35 AM »
A way to achieve this is by having a database application where you can store a unique random string....Then you generate and store the random string and append it as parameter on the url (ie www.yoursite.com?param=asge43gds3) then on load you check that the parameter has only being executed once...