Extra javascript in response?

Im making a get request to ‘custombot-api.rf.gd/api/linkserver.php?id=abc’
But it returns
<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("3e8ee5d8c4bc3f778c9d4b106911e3d8");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://custombot-api.rf.gd/api/linkserver.php?serverid=336802051034054667&i=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>
in stead of
server linked!
How to remove this?

1 Like

My code to make request: (nodejs)
http.get({
host: ‘custombot-api.rf.gd’,
path: ‘/api/linkserver.php?serverid=’+message.guild.id
}, function(response) {
// Continuously update stream with data
var body = ‘’;
response.on(‘data’, function(d) {
body += d;
});
response.on(‘end’, function() {

        // Data reception is done, do whatever with it!
        console.log(body);
    });
});

All clients using your hosting account must be able to execute javascript responses and accept cookies. Normal website visitors are search engine crawlers are not affected by this, but it does mean that API access is not support here. If you want to host an API service, you’ll need to upgrade your account.