[英]Incapsula - How do I allow socket connection/requests from a specific IP?
I am not very familiar with Incapsula but I am currently working in a project that needs to send socket messages using simple socket php scripts on both ends (scripts work in localhost): 我对Incapsula不太熟悉,但是我目前正在一个项目中,该项目需要在两端使用简单的套接字php脚本发送套接字消息(脚本在localhost中工作):
-Client: Outside Incapsula Sends messages to server -客户端:外部封装将消息发送到服务器
-Server: Apache Inside Incapsula (under Incapsula protection) Receives messages from client (a single client) -Server:Apache Inside封装(受封装保护)从客户端(单个客户端)接收消息
Supposing the IP from the client is: 198.168.123.123, how should I proceed to allow connections from this IP as if the server had no Incapsula protection for this IP? 假设来自客户端的IP为:198.168.123.123,我应该如何继续允许来自该IP的连接,就像服务器对该IP没有封装保护一样?
Or is it impossible? 还是不可能?
Thank you. 谢谢。
It's always recommended to restrict server access to Incapsula IPs: https://incapsula.zendesk.com/hc/en-us/articles/200627570-Restricting-direct-access-to-your-website-Incapsula-s-IP-addresses- 始终建议限制服务器对Incapsula IP的访问: https : //incapsula.zendesk.com/hc/en-us/articles/200627570-Restricting-direct-access-to-your-website-Incapsula-s-IP-addresses --
You can restrict the client's source IP inside your Incapsula account very easily: www.incapsula.com/demo/settings_3.html 您可以很容易地将客户端的源IP限制在您的Incapsula帐户内:www.incapsula.com/demo/settings_3.html
If you want to restrict it in your code, you can use X-Forwarded-For and/or Incap-Client-IP headers: https://incapsula.zendesk.com/hc/en-us/articles/200627650-The-IPs-in-my-weblogs-have-changed 如果要在代码中限制它,则可以使用X-Forwarded-For和/或Incap-Client-IP标头: https ://incapsula.zendesk.com/hc/en-us/articles/200627650-The- 我的网志中的IP已更改
HTH, Ofer HTH,Ofer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.