3

From a security standpoint (specifically preventing email scraping), what is the best practice for email addresses in source code specifically intended for distribution on sites such as GitHub? As an example, PHPDoc syntax for the author element includes the author's email address in plain text.

Nilpo
  • 4,675
  • 1
  • 25
  • 39

1 Answers1

4

You can use a private GitHub email address: see "Keeping your email address private", using your GitHub account Email settings, at least for the commits (as I mentioned in "Does Git publicly expose my e-mail address?"):

https://github-images.s3.amazonaws.com/help/settings/email_privacy.png

git config --global user.email "username@users.noreply.github.com"

But for the content of those commits, there isn't much solution except making sure to use a custom email address dedicated for that work.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250