Let's Encrypt makes this pretty easy, and free. What I usually do is have localhost.foobar.com resolve to 127.0.0.1, and either have a Let's Encrypt wildcard cert, or a cert specifically for localhost.foobar.com
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Other method:
foobar.com
*.foobar.com
app1.foobar.com
is a proxy tolocalhost:4000
127.0.0.1 app1.foobar.com
to your/etc/hosts
Now this is a nerdy, overcomplicated solution that I like.
Let's Encrypt makes this pretty easy, and free. What I usually do is have
localhost.foobar.com
resolve to127.0.0.1
, and either have a Let's Encrypt wildcard cert, or a cert specifically forlocalhost.foobar.com