I use php,
I have a web page that I should not allow anybody posting data to my website except one specific web site.
How can I block all the posts coming from outside except one domain?
I want to allow a website to post my page an input but I need to block the rest of the world.
by the way, only the registered users can post data to my page, however I need to be sure that the data posted to my website must come from that specific domain.
How can I do that?
You can check the value in $_SERVER['HTTP_REFERER']
http://php.net/manual/en/reserved.variables.server.php
You can use an API key, or OAuth, or similar authentication "handshake."
https://www.experts-exchange.com/articles/12239/Introduction-to-Application-Programming-Interfaces.html
You can add a CAPTCHA test to the posting script.
https://www.experts-exchange.com/articles/9849/Making-CAPTCHA-Friendlier-with-Simple-Number-Tests-or-PHP-Image-Manipulation.html
You can use PHP client authentication.
https://www.experts-exchange.com/articles/2391/PHP-Client-Registration-Login-Logout-and-Easy-Access-Control.html
You can use some kind of a form token.
https://www.experts-exchange.com/articles/28802/Improved-Form-Tokens-to-Guard-Against-CSRF-and-Screen-Scrapers.html