title: How to check if a request if coming from the same server or different server?
body: <p>How can I check whether a request being received is sent from the same server??</p>
  
  <p>Say, I've my domain at www.domain.com. Now I've php processing files which will process forms hosted through this domain. This processes will be executed only if the requests are sent from within the domain ie. www.domain.com and any other requests sent from other domains will be discarded.</p>