Simple and Free DDoS Protection with IPtables + Cloudflare

HostLittle

Member
Joined
Oct 18, 2016
Messages
66
Points
8
Hey there everyone,

I wrote this tutorial called simple and free ddos protection, so you can protect your website from DDoS.

What is DDoS?

Distributed Denial of Service is an attack on Internet infrastructure. Sending thousands of packets of data can overload a web server and cause it to slow down or crash.

With more and more of our life depending on fast reliable Internet service, it is easy to see why DDoS protection is very important.

So, let's get into the tutorial.

Step 1) Signup on Cloudflare.com. This is free and usually takes about 10 minutes.

Step 2) Login to SSH and use iptables (free) to block all traffic to your website EXCEPT Cloudflare's IP's

What this does is block everyone except Cloudflare from accessing your website. Be careful not to lock yourself out! Now the only traffic that is allowed to hit your server, is from Cloudflare.

Please feel free to leave a comment or send me a message with any questions!
 

BillEssley

WMS Marketplace Seller
Joined
Feb 19, 2013
Messages
195
Points
18
Simple and Free DDoS Protection with IPtables + Cloudflare
it is weird in your title, because of using Cloudflare then its ready have functions like IPtables to solve DDoS attacks.

Step 2) Login to SSH and use iptables (free) to block all traffic to your website EXCEPT Cloudflare's IP's
Why you use iptables to black all traffic, it can affect to your website if you also blocked your real visitors/ traffic.

What this does is block everyone except Cloudflare from accessing your website. Be careful not to lock yourself out! Now the only traffic that is allowed to hit your server, is from Cloudflare.
In Cloudflare, enable "I am under attack" mode then Cloudflare could handle bot/spam/ddos traffic.
 
Older threads
Replies
4
Views
2,211
Replies
7
Views
5,294
Replies
12
Views
7,050
Replies
1
Views
4,561
Latest threads
Replies
0
Views
28
Replies
0
Views
127
Replies
2
Views
332
Recommended threads
S
  • Locked
Replies
2
Views
4,030
Replies
6
Views
2,723
Replies
4
Views
2,583
Replies
2
Views
4,732

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top