Created
October 21, 2014 00:52
-
-
Save notcome/a94e6c0c95cff41c8a10 to your computer and use it in GitHub Desktop.
Simplest way to implement parental control in Qujing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var server = http.createServer(onRequest); | |
function onRequest (req, res) { | |
res.writeHead(403, 'You are forbidden to visit this page due to Qujing\'s parental control.'); | |
res.write('You are forbidden to visit this page due to Qujing\'s parental control.'); | |
res.end(); | |
} | |
server.listen(60001); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment