Search code examples
phphttprequestblock

Can a server block requests from a website of mine?


There's a website hosted on a server (A) that makes an HttpRequest via php to another website hosted on another server (B).

Every time a user click a button on the homepage of the website hosted on A, A makes a request to get an html page of B.

Can B block these requests from A?


Solution

  • Short answer: Yes its possible.
    Long answer: it is not practical. Although you can block a server's IP address, but if the server's owner really wants to do it, he/she can just get a free proxy and then send the request, you will never be able to tell if the request is sent from Server A or a valid user.