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
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:
- How do I find a certain seller on Amazon?Best solution by blog.ordoro.com
- How can I block a specific web page?Best solution by Yahoo! Answers
- How can I connect a TCP/IP camera to the PC?Best solution by Stack Overflow
- Can I block a specific phone number on my magic jack?Best solution by Yahoo! Answers
- How do I block a contact?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.