I have a PHP script where it is pretty important that POST data is coming from a know source. Judging from ‘similar titles’ there is no real way to do this as headers can be spoofed. Can SERVER_ADDR be spoofed also? Could this be used as some sort of verification where data is being posted from?
I have a PHP script where it is pretty important that POST data is
Share
Disregarding PHP, relying on the IP address the request seems to arrive from is a rather weak form of security. You should consider using HTTPS with individual client certificates handed out to each trusted source.
SSL might seem daunting at first, but what you need here is not complicated at all, and you’ll be gaining a valuable skill learning it.