Normalise the Server, X-Powered-By and X-RSCDS-Version headers.

This commit is contained in:
Andrew McMillan 2006-12-02 11:32:46 +13:00
parent 974925b76f
commit 6f1ff7c67d

View File

@ -12,5 +12,17 @@ while( <STDIN> ) {
$_ = "Date: Dow, 01 Jan 2000 00:00:00 GMT\r\n";
};
/^Server: Apache\/[0-9.]+/ && do {
$_ = "";
};
/^X-Powered-By: PHP\/[0-9.]+/ && do {
$_ = "";
};
/^X-RSCDS-Version: RSCDS\/[0-9.]+\.[0-9.]+\.[0-9.]+; DB\/[0-9.]+\.[0-9.]+\.[0-9.]+/ && do {
$_ = "";
};
print;
}