【发布时间】:2012-06-26 11:36:58
【问题描述】:
我需要使用 facebook 应用程序,但我的网页返回响应 206 而不是 200, 以便 facebook 应用程序返回 http 代码 500。
我用http://developers.facebook.com/tools/debug/og/object?q=http://adserver.leadhouse.net/test/test/index.php 测试并返回 206 而不是 joomla.it 返回 200 当它们相同时 curl -I 响应数据e
我用这个 perl 脚本测试过:http://pastebin.com/NCDv9eTh 而且我的页面很容易受到攻击,而 joomla.it 很好。
我认为我的答案非常接近 Facebook debugger : Response 206 和Apache Webserver security and optimization tips
但我不明白如何更改我的 apache 配置。 解决方案在此页面中: www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2 使用类似的代码:
SetEnvIf Range (,.*?){5,} bad-range=1
RequestHeader unset Range env=bad-range
或 httpd.apache.org/docs/2.2/mod/core.html#limitrequestfieldsize
我怎样才能使它不那么容易受到我的网页的攻击?
【问题讨论】:
标签: facebook apache security debugging