This site requires Javascript to work, please enable Javascript in your browser or use a browser wit
I have a website which I just want to get a JSON response from:
http://bitshift.io/masterserver/api.php?action=server-update
that URL works fine in a webbrowser, but when I connect through an app I am writing I get an error back:
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;fd[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("a2a6065c3c374ede04603658bcf873f1");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://bitshift.io/masterserver/api.php?action=server-update&i=1";
Someone said that the host should have some option to disable this if not, to find a new host.
I see other people having the same problem on profreehost:
https://profreehost.com/forum/discussion/717/wtf-is-aes-js
https://profreehost.com/forum/discussion/96/this-site-requires-javascript-to-work-please-enable-javascript-in-your-browser-or-use-a-browser-wit
https://profreehost.com/forum/discussion/144/not-displaying-json-content
This php code has been validated and works on other hosts I am also evaluating.
How do I configure my account to fix this?
Comments
-
@bitshift said:
I have a website which I just want to get a JSON response from:http://bitshift.io/masterserver/api.php?action=server-update
that URL works fine in a webbrowser, but when I connect through an app I am writing I get an error back:
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;fd[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("a2a6065c3c374ede04603658bcf873f1");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://bitshift.io/masterserver/api.php?action=server-update&i=1";
Someone said that the host should have some option to disable this if not, to find a new host.
I see other people having the same problem on profreehost:
https://profreehost.com/forum/discussion/717/wtf-is-aes-js
https://profreehost.com/forum/discussion/96/this-site-requires-javascript-to-work-please-enable-javascript-in-your-browser-or-use-a-browser-wit
https://profreehost.com/forum/discussion/144/not-displaying-json-contentThis php code has been validated and works on other hosts I am also evaluating.
How do I configure my account to fix this?Hello,
this security system is mandatory on all free hosting accounts and cannot be disabled.
Solutions for you:
1. Use CloudFlare from cpanel, enable Full SSL and wait till it propagates, after the SSL is enabled and your site shows as secure you will be able to get the JSON response from your app.
2. Upgrade to Premium Hosting. There, this system will not exist and you will have many more amazing features like a free SSL certificate from Let's Encrypt and faster website loading.