Can someone please explain like I'm five how this line of code sends the domain a user visited to DDG's servers?
Since DDG owns the icons.duckduckgo.com service and the domain you were interested in is in the request to icons.duckduckgo.com, you've sent the domain to DDG's servers.