- I was trying to use a php redirection technique from this page, but Grav does not allow to run php scripts no matter how permissive are the privileges.
<p> If you have any questions or suggestions, please write us an <a href="redirect-mailto.php">email</a>. </p>
The content of the redirect-mailto.php file is a script that redirects to the actual mailto link:
<?php header("Location: mailto:email@example.com"); ?>
Then I use the recommendation on this forum post, it works but when I see the webpage code it simply substitutes the ASCII characters of the email address for its equivalent HTML identity, and I guess that trick can be overcome by spam bots:
Mailto spam protect
Is there a better way that you can recommend to protect emails addresses from being harvested?, I do not want to use an email form, I had countless of problems from spammers abusing email forms.
3.1 I would prefer to use solution on point 1 but I do not want to touch de secirity default values of Grav, so how can I run this single php script only?