简体   繁体   English

封装-如何允许来自特定IP的套接字连接/请求?

[英]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. 谢谢。

  1. 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 --

  2. You can restrict the client's source IP inside your Incapsula account very easily: www.incapsula.com/demo/settings_3.html 您可以很容易地将客户端的源IP限制在您的Incapsula帐户内:ww​​w.incapsula.com/demo/settings_3.html

  3. 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.

相关问题 如何配置Apache以允许来自同一IP的同时请求 - How configure apache to allow simultaneous requests from the same ip htaccess:我不能允许从特定域而不是 IP 访问 - htaccess: I cannot allow access from a specific domain instead of IP 如何配置Apache2以允许来自同一IP地址的多个同时连接? - How do I configure Apache2 to allow multiple simultaneous connections from same IP address? 如何限制特定的 IP 范围从查看 .htaccess 中的特定页面? - How do I restrict specific IP ranges from viewing a specific page in .htaccess? 如何编辑.htaccess以允许rails和wordpress请求? - How do I edit .htaccess to allow both rails and wordpress requests? 如何在Vagrantfile的htaccess中允许IP - How can I allow IP in htaccess from Vagrantfile 允许从特定的URL访问并通过admin文件夹上的ip阻止访问 - Allow access from specific url and block access by ip on admin folder 如果来自特定 IP 地址,则允许用户使用任何密码 - Allow user with ANY password IF coming from a specific IP address 如何将图像请求重定向到特定文件夹? - How do I redirect image requests to a specific folder? 如何只允许使用.htaccess的特定目录的相同域请求? - How to allow only same domain requests for specific directories with .htaccess?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM