1

I want view if someone try to inject xss,sql to my apache2 server, My idea is create a waf in nodejs and if the connection is secure, redirect to apache2. It is posible?

neuro
  • 14,948
  • 3
  • 36
  • 59
elvaqueroloconivel1
  • 889
  • 2
  • 8
  • 11

1 Answers1

0

Yes, it's certainly possible, but avoid the term "redirect" here. What you really want is to a reverse proxy. There's no shortage of basic examples of a node.js reverse proxy -- you'll just need to add whatever WAF checks prior to proxying.

covener
  • 17,402
  • 2
  • 31
  • 45