Crates.io | getsecure |
lib.rs | getsecure |
version | 0.1.1 |
source | src |
created_at | 2024-09-03 16:19:25.893058 |
updated_at | 2024-09-03 17:37:26.20072 |
description | Utility for securing expiring links |
homepage | |
repository | |
max_upload_size | |
id | 1361814 |
size | 19,257 |
Utility for securing expiring links
location /secret_page.html {
secure_link $arg_md5,$arg_expires;
secure_link_md5 "$secure_link_expires$uri <put here secret string>";
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 410;
}
}
getsecure http://example.com/secret_page.html <put here secret string> --period=30
http://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
or
getsecure /secret_page.html <put here secret string> --period=30
/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
where period is days from now to future when link should work