Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide form values

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.

like image 685
Ian Warburton Avatar asked Nov 15 '22 01:11

Ian Warburton


1 Answers

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.

like image 119
Unsigned Avatar answered Dec 22 '22 13:12

Unsigned