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.comapp1.foobar.comis a proxy tolocalhost:4000127.0.0.1 app1.foobar.comto your/etc/hostsNow 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.comresolve to127.0.0.1, and either have a Let's Encrypt wildcard cert, or a cert specifically forlocalhost.foobar.com