问题标签 [incapsula]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2265 浏览

caching - 使用 Cloudflare/Incapsula 时是否需要 memcache(d)

如果您需要在您的网站中进行缓存以降低数据库的使用率,您是否必须使用memcachememcached(例如在 PHP 中)来做到这一点,或者您可以通过使用CloudFlareIncapsula或其他类似的专业服务来实现这一点做一些缓存为你?

0 投票
2 回答
3717 浏览

performance - Do services like Cloudflare and Incapsula actually improve the performance of websites hosted on Windows Azure?

I'm running an image-heavy website hosted on Windows Azure. Back-end performance is great but response times for image thumbnails, which make the bulk of page sizes, are quite volatile. I'm using the Azure CDN for serving all images but their response times vary by orders of magnitude and I haven't found any pattern in the fast (~150 milliseconds) vs slow (3-4 seconds) requests yet. This also doesn't seem to be a local phenomenon since I've tested the load times from different locations/continents. My conclusion so far is that the Azure CDN is simply not that good after all and I started looking for other ways to improve the load times of static assets.

Now that the context is clear, here is my actual question: does anyone have experience with services like Cloudflare and Incapsula for improving the performance of websites hosted on cloud infrastructure like Windows Azure? These services promise reduced server load among other things, but I'm more interested if they are actually effective in reducing response times for static files, as well as any negative impact on dynamic page content. I'd greatly appreciate any answers based on practical experience and/or advice for alternative solutions.

UPDATE: Here are the response headers for one of the images on the CDN:

0 投票
2 回答
1374 浏览

incapsula - incapsula 支持 websocket 吗?

我收到一封来自 Incapsula 的电子邮件,解释他们不支持 websockets。至少可以说我觉得这很奇怪,他们的支持代表只是复制粘贴了一篇维基百科文章(他们甚至不知道它是什么)。

不过,当我尝试使用他们的服务运行 websockets 时,我收到了各种“格式错误”的请求。

0 投票
1 回答
6523 浏览

android - Android http请求被封装阻止

在我的应用程序中,我一直在使用 DefaultHttpClient 将带有用户代理的 HttpRequest(以获取完整站点)发送到新闻网站。似乎最近该网站开始使用 Incapsula,我现在明白了:

有什么提示吗?我可以绕过 incapusla 吗?

非常感谢

0 投票
4 回答
12857 浏览

dns - Cloudflare 或 Incapsula CDN,无需更改 DNS

我正在寻找可以为我的静态文件提供服务的低成本/免费 CDN。(我将从我自己的服务器提供动态文件)

从计划来看,免费计划似乎包括 CDN:
https ://www.cloudflare.com/plans
http://www.incapsula.com/pricing-and-plans/compare-all-plans/?src=176
但之后注册 Cloudflare 希望我将我的 DNS 记录更改为他们的 DNS 服务器。

在不更改 DNS 记录的情况下,是否无法从他们的服务器上提供一些文件?

0 投票
1 回答
1070 浏览

javascript - 使用 Jsoup 解析 html - 返回带有 robots 元标记的文档

我的问题是,当我使用 jsoup lib 解析特定的 url 时,它一直很棒,直到有一天我的解析损坏了,返回的文档有一些标签,这些标签与旧文档不同,它有名为 meta 标签“机器人”。

响应中的标头示例:

我的问题是,你认为我怎样才能克服这个障碍?尝试使用其他几个解析 javascript 的库,但它没有帮助并且结果相同,也许我没有正确使用它。

(我了解到元标记机器人是为了防止机器人,最初是为搜索引擎设计的,我怎样才能绕过这种行为?我怎样才能像普通的每个浏览器客户端一样行事?)

0 投票
1 回答
827 浏览

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

我对 Incapsula 不是很熟悉,但我目前正在一个项目中工作,该项目需要在两端使用简单的套接字 php 脚本发送套接字消息(脚本在 localhost 中工作):

-Client:Incapsula 外部向服务器发送消息

-Server:Apache Inside Incapsula(在 Incapsula 保护下)从客户端(单个客户端)接收消息

假设来自客户端的 IP 是:198.168.123.123,我应该如何继续允许来自该 IP 的连接,就好像服务器对此 IP 没有封装保护一样?

还是不可能?

谢谢你。

0 投票
1 回答
634 浏览

javascript - 封装和 Websocket

封装和 Websocket

我的 websocket 连接有问题。我的英语不太好,但我会尽量清楚地说明我的问题。

我们有控制台 websocket 应用程序,它使用 3131 作为服务器上的端口。在我们启用封装保护之前,它工作正常。他们说 incapsula 的 websocket 工作正常,但是当我现在尝试连接 websocket 时,我得到了“错误超时”。

0 投票
2 回答
109 浏览

api - Paymill 请求错误

调用 Paymill API 端点会返回一个错误 HTML

<html style="height:100%"><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone=no"><meta name="viewport" content="initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></head><body style="margin:0px;height:100%"><iframe src="/_Incapsula_Resource?CWUDNSAI=19&xinfo=7-116343066-0 NNNN RT(1460904871089 46) q(0 0 -1 -1) r(150 -1) b6 U5&incident_id=198001240411479290-1000198536362854343&edet=20&cinfo=ffffffff1a40" frameborder=0 width="100%" height="100%" marginheight="0px" marginwidth="0px">Request unsuccessful. Incapsula incident ID: 198001240411479290-1000198536362854343</iframe></body></html>

示例请求可能是这个(也测试了其他几个具有相同结果的请求):

curl -u PAYMILL_API_KEY:foo https://api.paymill.com/v2.1/client

奇怪的是,对于三台装有 Debian 的机器,上述请求惨遭失败。使用 Ubuntu,它确实有效。有没有人经历过这个?

0 投票
3 回答
422 浏览

dns - 为什么 CDN DNS 设置需要 A

可能很简单的问题,我错过了一些微不足道的事情,但是......典型的 CDN 封装设置是:

  • domain.com 封装IP的记录
  • subdomain.domain.com CNAME 记录到 incapsula.host

为什么使用 A 记录?为什么不将 CNAME 记录也用于根域?