title: prevent form submiting (post/get) if not in server php
body: <p>Im testing a basic form in my <code>localhost</code> and my domain name server <code>domainexample.com</code></p>
  
  <p>And I need to authorize only the forms submitted in my site only <code>domainexample.com</code></p>
  
  <p>I made this prove</p>
  
  <p><strong>PHP CODE</strong></p>
  
  <pre><code>&lt;?php 
  
      if (isset($_POST['testEngine'])){
  
           $test=  $_POST['test'];
  
          echo $test;
       }
     //
     ?&gt;
  </code></pre>
  
  <p><strong>HTML FORM</strong></p>
  
  <pre><code>&lt;form method="POST" action="https://domainexample.com/form.php"&gt;
  &lt;input type="text" name="test" /&gt;
  &lt;input type="hidden" name="testEngine" /&gt;
  &lt;input type="submit" value="Search" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Im realizing that, if I submit this form from my localhost, it executes in my server, how do I prevent this behaviour? thank you.</p>