Hi there,
I could block other web sites access to my server with this simple logic:
var mydomain = '
http://www.mywebsite.com/';
if(url !== 'mydomain') {
return;
}
However, it could not block request from a local computer's file like from this location:
file:///D:/test.html
How do you prevent request from this location to access to the server and stealing bandwidth and sensitive data.
Do you even think this is a security issue. I'm worried too much about this insecure.
Thank you