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