Just a warning: when using the drop down lists that appear when you type (or start to type) $_SERVER . If you use HTTP_REFERER, just note that in the drop down list it is spelt correctly, but when you click on it and the code appears in the text, it is spelt incorrectly.
Just shows that you can't rely 100% on DW and don't just accept the code that it outputs.