Please, i need help.

I have an site where anyone can upload any video file, and I'm in trouble because the site are getting uploads with ilegal content. Everytime when i delete the video, i also ban the IP of uploader using the command:

sudo iptables -A INPUT -s IP -j DROP

But it just ban for awhile. When i retrieve the list of banned ips, the ips from the past is gone.

And I'm sure for those who are doing this is behind of proxy sites. I don't know what i should do. Maybe is time to close my site. It was going too well. :(

2 Answers

When you restart the server, your Iptables rules will be gone. You can use iptables-persistent to save iptable rules. To install iptables-persistent use the command below.

sudo apt-get update
sudo apt-get install iptables-persistent

When you make a change to iptables, run the following command to save it:

sudo invoke-rc.d iptables-persistent save

You can read more about this here:

by Justin Ellingwood
The iptables firewall is a great way to secure your Linux server. In this guide, we'll discuss how to configure iptables rules on an Ubuntu 14.04 server.

Thanks, i did it. About ban the list of proxys IPs. There is a way?

  • There is no easy way to do this unfortunately. There is a paid proxy detection service from MaxMind that I use at work to check fraud orders. I also found a couple of free once, this one seems to work well, it also has a simple GET API.

Have another answer? Share your knowledge.