Tag Archives: one time link

Requirements Specification for: Advance One Time URL script

Written by Garry Lachman (Admin). Filed under News. Tagged , , , , , , , , . .

Hi,
I`m planning to build new One Time URL script, after i found that the old version is bit problematic, i start to planning Advance One Time URL script.

Requirements Specification:

  1. using mySql as db.
  2. make one time url and store it in db.
  3. option to make few times url with limit.
  4. using http headers to force download – and not redirect as old script.
  5. mod_rewrite mode.
  6. regular link mode.
  7. install script – build the mySql schema.
  8. custom redirection for expired links.
  9. config file (db params, redirection params, default mode, etc…).

 

If you have more ideas, you can write it as comment.

Thanks,
Garry

Share

Garry`s One Time URL PHP5 Script

Written by Garry Lachman (Admin). Filed under PHP + mySQL. Tagged , , , , , , , , , , , , , , , . .


I open Requirements Specification for Advance One Time URL script.
You can see and help with ideas.

Hi,

I wrote little script + lib for one time url.
this script make MD5 hash string for one time using and redirect file.
the links looks like: http://garry-lachman.com/link/ce75f50f55bcedf0a72098a01764548bĀ and can be used one time only.

The url storing is based on PHP Sessions and link redirection on MOD_REWRITE but there is example
for non MOD_REWRITE using
Example of create of the link:

1
2
3
4
5
<?php
require_once("libs/one_time_url.lib.php");
$one_time_url = new one_time_url();
?>
<a href="<?php echo $one_time_url->make_url("http://www.garry-lachman.com"); ?>">This is one time URL to http://www.garry-lachman.com</a>

The code & example can be downloaded form here.
License: GNU/GPL (open source)

Share