{"_id":"express-anti-leech","_rev":"33-1317b17c2701a0f04b14c8f83f25160c","name":"express-anti-leech","description":"Anti leech middleware for express","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.0":{"name":"express-anti-leech","version":"0.0.0","description":"anti leech middleware for express","main":"index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{},"scripts":{"test":"npm test"},"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"keywords":["anti-leech"],"author":{"name":"lellansin"},"license":"MIT","bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"_id":"express-anti-leech@0.0.0","dist":{"shasum":"68789b7302ecf37bbde39e6562e815fff971c737","tarball":"https://registry.npmjs.org/express-anti-leech/-/express-anti-leech-0.0.0.tgz","integrity":"sha512-TT7x4izmevSqomH/OHzQYTyZJJ11mnoIe7j3cCKSZjjOECaadp61uYry9sv7reRblpiBUQjg16L9rDaIfsH+8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdW63fUIpg816hSdfXLB1iXZfZ+026J6S7UExbbITKyQIhAMN+XM+VqW7e+Mcgr0C/M9FfNV5v6MMD4cJt+kNDDZVV"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"lellansin","email":"lellansin@gmail.com"},"maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}]},"0.0.1":{"name":"express-anti-leech","version":"0.0.1","description":"Anti leech middleware for express","main":"index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{},"scripts":{"test":"cd ./test/express && npm test"},"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"keywords":["anti-leech"],"author":{"name":"lellansin"},"license":"MIT","bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"_id":"express-anti-leech@0.0.1","dist":{"shasum":"1936629a8f361c10dc666df2d61e472b4fc990fa","tarball":"https://registry.npmjs.org/express-anti-leech/-/express-anti-leech-0.0.1.tgz","integrity":"sha512-83moebscpAHt3n+7DBup81NrSHKVUb2LPBPZf9T5/VJVNJImvehtuk7Bk8sPqRPszJJZen2zmGIJxR4GqzjfvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHd9Vyec5I0uWhsMqorV4L+5dOnXQ64Li/2rE3sKsbeLAiEA1c6s+9cT+DN8xt0ZLlgPXW94qlCAb+l16CfAmFzbsf8="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"lellansin","email":"lellansin@gmail.com"},"maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}]},"0.0.2":{"name":"express-anti-leech","version":"0.0.2","description":"Anti leech middleware for express","main":"index.js","directories":{"test":"test"},"dependencies":{"options":"0.0.5"},"devDependencies":{"express":"~4.9.2"},"scripts":{"test":"cd ./test/express && npm test"},"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"keywords":["anti-leech"],"author":{"name":"lellansin"},"license":"MIT","bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"_id":"express-anti-leech@0.0.2","dist":{"shasum":"4830d3e427bdf6468a447660d3eef3e8c978ced2","tarball":"https://registry.npmjs.org/express-anti-leech/-/express-anti-leech-0.0.2.tgz","integrity":"sha512-L9L22HrbFZYM5b7pVtyII0HdT5YIRQqhs9UcIv6c6xqHEaHVfVI0CrDO0NTwCvDNkmAGXqQl9sbhCXQa29psOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYgbjRsmKh1Vw+eWivI0Z3hM0SJtn6LQRoF5RvYWcWiAIhALF0Oq8AnOMtu6K46zXwjOMj6qfuCPQCSBkqrsUrQWE1"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"lellansin","email":"lellansin@gmail.com"},"maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}]},"0.0.3":{"name":"express-anti-leech","version":"0.0.3","description":"Anti leech middleware for express","main":"index.js","directories":{"test":"test"},"dependencies":{"options":"0.0.5"},"devDependencies":{"express":"~4.9.2"},"scripts":{"test":"cd ./test/express && npm test"},"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"keywords":["anti-leech"],"author":{"name":"lellansin"},"license":"MIT","bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"_id":"express-anti-leech@0.0.3","dist":{"shasum":"14d67e421a91e6cb45a0f1423525fb953afba90a","tarball":"https://registry.npmjs.org/express-anti-leech/-/express-anti-leech-0.0.3.tgz","integrity":"sha512-7TZJ1aOLTyUAexacSgEO6oHOlt9dtniDdkDPa2Y4++ixwA+8Yqeg6CtG8dH7zk0JEDyCA+wYao7xNBHtIEjpQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZL0MzGttibKjZaaB+BDMRFSSYUiWDd9hleXBy/OgFggIhAOPLBT6/bjMQ/vhE2y46IvIz4mhRIYeM3d2X6oYOcyo3"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"lellansin","email":"lellansin@gmail.com"},"maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}]},"0.0.5":{"name":"express-anti-leech","version":"0.0.5","description":"Anti leech middleware for express","main":"index.js","directories":{"test":"test"},"dependencies":{"options":"0.0.5"},"devDependencies":{"express":"~4.9.2"},"scripts":{"test":"cd ./test/express && npm test"},"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"keywords":["anti-leech"],"author":{"name":"lellansin"},"license":"MIT","bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"_id":"express-anti-leech@0.0.5","dist":{"shasum":"65851fada011c4d0df90b97245544088dfd660ff","tarball":"https://registry.npmjs.org/express-anti-leech/-/express-anti-leech-0.0.5.tgz","integrity":"sha512-/VNjAsBCaLNaiU2F2Nka8mw2jVe9JgDH5x8lqY3fOBRTJlbXE7Vl5DaacsubrE4q+IOzVo1VqrQCUxilbh4CWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBXht8CxavWV1mgp9kTZMAhuv29hKfWWFKMKQvHSGb/uAiEApHLkmDhu6/W8Wj1HLuveltsk/bEpMmCz3ag+SHiUoFU="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"lellansin","email":"lellansin@gmail.com"},"maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}]}},"readme":"express-anti-leech\n==================\n\nAnti leech for express website.\n\nWhat is Leech?\n-----------\n\nDirect linking (or hot-linking) is a form of bandwidth leeching that occurs when placing an unauthorized linked object, often an image, from one site in a web page belonging to a second site (the leech).\n\nLeech (computing) wiki\nhttp://en.wikipedia.org/wiki/Leech_(computing)\n\nInstall\n-----------\n<code>npm install express-anti-leech</code>\n\nExample\n-----------\n\n    var express = require('express'),\n      path = require('path'),\n      app = express();\n    \n    var AntiLeech = require('express-anti-leech');\n    \n    // white list\n    var hosts = ['localhost', 'localhost:8004'];\n    \n    // filter type\n    var exts = ['.png', '.jpg', '.jpeg', '.gif', '.swf', '.flv'];\n    \n    // default show picture\n    var pictrue = \"/images/default.png\";\n    \n    app.use(AntiLeech({\n      allow: hosts,\n      exts: exts,\n      log: console.log, // you can use your own\n      default: pictrue\n    }));\n    \n    // keep AntiLeech before use static\n    app.use(express.static(path.join(__dirname, 'public')));\n    app.set('port', process.env.PORT || 8004);\n    \n    app.get('/', function(req, res) {\n      res.redirect(\"/index.html\");\n    });\n    \n    app.listen(app.get('port'), function() {\n      console.log(\"Express test server listening on http://localhost:\" + app.get('port'));\n    });\n","maintainers":[{"name":"lellansin","email":"lellansin@gmail.com"}],"time":{"modified":"2022-06-17T22:07:22.370Z","created":"2014-05-12T14:33:16.685Z","0.0.0":"2014-05-12T14:33:19.588Z","0.0.1":"2014-05-12T14:47:32.207Z","0.0.2":"2014-09-20T16:25:21.898Z","0.0.3":"2014-09-20T17:12:40.104Z","0.0.4":"2014-09-20T20:45:35.928Z","0.0.5":"2014-09-20T21:01:16.910Z"},"readmeFilename":"README.md","keywords":["anti-leech"],"repository":{"type":"git","url":"https://github.com/Lellansin/express-anti-leech.git"},"author":{"name":"lellansin"},"bugs":{"url":"https://github.com/Lellansin/express-anti-leech/issues"},"license":"MIT","users":{"lellansin":true,"lonjoy":true}}