surely the request should'nt come from the client but a separate server? I presume the reason link checking exists is that the URL is reviewed for maliciousness, and that isn't likely to be done locally
Maybe this problem is intractable logically? The preview needs to be accurate from the perspective of the client. The only way to guarantee that seems to me sending the request from client.