I'd like to use Elmah on my website except I'm concerned that if I get an exception on a page that accepts credit card numbers then people's credit card numbers will end up in the error log. Of course, I don't want a copy of them anywhere on my server.
So is it possible to hide the value of a form field on a particular page? For example, it would appear as txtBxCCNumber=xxxxxxxxxxxx
in the Server Variable
section.
First of all make sure you secure your Elmah logs from anonymous access.
Then, read the section on Error Filtering and the provided examples. You should be able to adapt an example on the page to filter out errors on your credit card form page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With