rolero / mod-auth-token Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/mod-auth-token
License: Apache License 2.0
Automatically exported from code.google.com/p/mod-auth-token
License: Apache License 2.0
This module uses token based authentication to secure downloads and prevent deep-linking. Have your script or servlet generate a token to authenticate the download and let Apache handle the file transfer without having to pipe it through a script for security. You can find downloads, daily snapshots and support information at http://code.google.com/p/mod-auth-token/ USAGE The token is an hex-encoded MD5 hash of the secret password, relative file path and the timestamp. It is encoded onto the URI as: <uri-prefix><token>/<timestamp-in-hex><rel-path> For example /protected/dee0ed6174a894113d5e8f6c98f0e92b/43eaf9c5/path/to/file.txt where the token is generated as md5("secret" + "/path/to/file.txt" + dechex(time_now())) you can add in the md5 hash the ip (and not the hostname) of the client to limit by ip. If you do so, enable AuthTokenLimitByIp in the config file of apache with the following configuration in httpd.conf <Location /protected/> AuthTokenSecret "secret" AuthTokenPrefix /protected/ AuthTokenTimeout 60 AuthTokenLimitByIp off </Location The actual file would be located in /protected/path/to/file.txt CREDITS Implementation ideas were taken from mod_secdownload for LIGHTTPD - http://trac.lighttpd.net/trac/wiki/Docs%3AModSecDownload
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.