Skip to main content

Utility for securing expiring links

Project description

# getsecure
Utility for securing expiring links

#Usage

##Add to nginx vhost secure location section like this

```
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;
}
}
```

##Get secure link

```
-> python secure.py http://example.com/secret_page.html <put here secret string> --period=30
http://example.com/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```
or
```
-> python secure.py /secret_page.html <put here secret string> --period=30
/secret_page.html?md5=IQ6H6OQYGeUnlLEDgHfYNw&expires=1488221041
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for getsecure, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size getsecure-0.0.2.tar.gz (1.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page