Hello
I was wondering if this would at all take care of attackers (viruses, injections & ddos etc) if I can configure to listen to requests through CloudFlare only?
If yes, then how can I configure apache to follow?
– Regards Saurabh
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi
Thanks for your response!
I have added following rule in UFW:
ufw allow proto tcp from <cloudflare_ips> to any 80
Do you think this step could help curtail attacks on the server as the requests gets filtered through CF and other direct traffic gets blocked.
PS: I have only open ports 80 & 443. All other ports are blocked.
Yes you can, but is not apache who handles traffic filtering, you need a firewall or something like iptables.
here is the list of Cloudflares IP addresses: https://www.cloudflare.com/ips
There are plenty iptables tutorials online,
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.