title: how to reject POST requests that are accessed from outside the server or from outside the website
body: <p>Firstly, i am sorry if my english is not good.
  I want to ask about how to reject POST requests that are accessed from outside the server or from outside the website.</p>
  <pre><code>&lt;?php
  
  if ($_SERVER['REQUEST_METHOD'] == 'POST'){
  //code
  }
  
  ?&gt;
  </code></pre>