title: How to get url of a page that makes a http ajax GET request in node.js?
body: <p>In node.js I have a site that serves pages from the same server. Pages can request for files on the same server using http get with ajax. However some pages are not allowed to request a file from a certain path. How can I validate this in node.js?</p>
  
  <p>Also this should be in a way a user can't hack from client side. The node.js would need a way to see if the request came from a page from a certain url and if so then block it if the link it requests is in a specified folder.</p>
  
  <p>Thanks</p>