Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想查看是否有人尝试将 xss、sql 注入我的 apache2 服务器,我的想法是在 nodejs 中创建一个 waf,如果连接安全,则重定向到 apache2。有可能吗?
是的,这当然是可能的,但在这里避免使用“重定向”一词。您真正想要的是反向代理。不乏 node.js 反向代理的基本示例——您只需要在代理之前添加任何 WAF 检查。