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
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi
Thanks for your response!
I have added following rule in UFW:
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,