Hacker News new | ask | show | jobs
by chinathrow 3932 days ago
Can't you set a cookie then re-direct to the PNG/JPG back on your own server?

Aynway, I've seen some domains shifting some crucial images like a play button into ad containers/folders just to come around ad blocker. Easy to adjust within ad blockers though.

1 comments

Not sure what you mean; if you mean to point an <img src> at a third party domain that responds with a 301 redirect together with a Set-Cookie then that won't really work because 1. you are pointing to a third party domain which the OP already suggested is blocked so the client never loads it and 2. you would need a complicated image hosting system on the first party domain for no good reason and 3. the first party domain image host won't see the cookie and can't pick an ad that matches the user's profile ("retargeting"). Did you mean something else?