I have a form that I would like to embed in a website that is on my whitelist.
Other websites that attempt to implement it should only receive an error page.
<iframe src="https://domain.tld/getForm.php?embed=1&formId=123456"></iframe>
I was hoping I could use $_SERVER['HTTP_REFERER']in getForm.phpto check the embed site, but it doesn’t work.
Does anyone know best practices or workarounds?
Thanks in advance!
source
share