How to deal with timeout when accessing a web service?

How do I block a specific ip (through amazon instant ) from accessing mysite?

  • I know how to do this via cpanel, but since we moved our hosting from hostgator to instance on Amazon web service and we dont have a cpanel on AWS, i was wondering how to block an ip from accessing my website.

  • Answer:

    Well, if you are on aws EC2 you probably have root access to your server. Connect to your instance (you can use aws console->ec2->right click on the instance->connect) on the terminal type sudo  iptables -I INPUT -s IPNUMBERTOBLOCK -j DROP And if you want that iptables rule to persist between reboots, you need to save it. To do this, just run: /etc/init.d/iptables-persistent save thats it :D

Igor Blumberg at Quora Visit the source

Was this solution helpful to you?

Other answers

I don't think you can do this through AWS. We block specific IPs at Apache httpd level.

Ravi Periasamy

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.