更新时间:2023-12-02 21:56:34
阿帕奇的mod_rewrite
允许URL的操作,但不是HTTP头,但是的'mod_headers会让你做到这一点。
Apache mod_rewrite
allows manipulation of URLs but not of HTTP headers, however 'mod_headers' will let you do that.
所以,你可以使用:
RequestHeader unset Cookie
这将去除的从请求所有的饼干。我不知道是否可能使用这种技术只删除特定的Cookie。
This will strip all cookies from the request. I'm not sure if its possible to remove just a particular cookie using this technique.
另外,你可以停止使用被传递的cookie返回给客户端:
Alternatively, you can stop cookies being passed back to the client using:
Header unset Set-Cookie
如果这是比较合适的。