Score:0

How to restrict AWS access to queries from specific domain names?

in flag

Hello, this is my first post on Server Fault, so please feel free to edit/correct etiquette.

I am managing a server at work that we have hosted on AWS. Recently, it has fallen victim to a DDoS attack. Luckily, this is only a staging server (right now), but in the future, we plan to use an API on it on a production application.

Currently, I have stopped the attack by limiting access (via AWS security groups) to all IPs but my own, and the office. This has worked, but obviously will not work if people need to access this server in the future.

My ideal system would be: block all traffic that is not coming from our domain, the domain we host all products on. For example, if that domain was "company.com", we would like for all requests coming from some random IP or another domain. Is this possible via AWS?

If not, the server is Apache2 and Ubuntu, and we may decide to handle this problem in there. I'm not very strong in Apache though, so I'm hoping there is a good AWS solution.

Again, if there is a duplicate question to this, feel free to close this/point me to it, I just don't know exact terminology for a lot of these topics and hence it is hard to find the right questions. Thank you!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.