﻿
module.exports = function(req, res){

    var isValidHost = ['absch.cbd.int'].includes(req.headers['hosts']);

    var text = isValidHost ? 'Allow: /' : 'Disallow: /';

    res.contentType('text/plain');
    res.end('User-agent: *\n' + text);
}

﻿
module.exports = function(req, res){

    var isValidHost = ['absch.cbd.int'].includes(req.headers['host']);

    var text = isValidHost ? 'Allow: /' : 'Disallow: /';

    res.contentType('text/plain');
    res.end('User-agent: *\n' + text);
}

fix spell