Forum Discussion

zafer's avatar
zafer
Icon for Nimbostratus rankNimbostratus
Nov 08, 2018

Comment Protection

Hi developers keep their comments into the codes, how can i protect/remove this comments with ASM

 

regards zafer

 

2 Replies

  • You can use DataGuard feature in ASM . Even though HTML comments are not credit card / Social Security numbers they can still be sensitive data which should not leak to attackers.

     

    Dataguard can mask the sensitive data with asterisks and raise a violation when comment is found.

     

    You will need a Regular Expression for HTML comments, here is an example:

     

    https://blog.ostermiller.org/find-comments-html