简体   繁体   中英

accept POST from only own server

i have developed a project in PHP now i need to process those POST DATA which have been sent from my own server !
how to do it ?
REFERRER is not a solution, as it can be blocked/removed or changed easily !
is there code to stop it in .htaccess ?

You could try to use cryptographic nonce : Typical client-server communication during a nonce-based authentication process including both a server nonce and a client nonce ( this client nonce could be built using the nonce recived from the server ) .

Now this doesn't make you super secure ( as there will be people who would be able to bypass this rather easy ) it will be harder for most floks to make a post to you're website .

在此处输入图片说明

( this image shows you how to use nonces in an authetification process , however you could use it for non authentification purposes )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM