make-gis-great-again icon indicating copy to clipboard operation
make-gis-great-again copied to clipboard

Enhancement: Clicking the "View image" button should open the image with the containing page URL as the referer

Open Googulator opened this issue 7 years ago • 4 comments

An opportunity to make GIS greater than it ever was: rather than just opening the image as if when clicking the old "View image" button on Google (with inages.google.com as the HTTP referer), actually take the URL of the "Visit page" button, and inject that as the Referer header when the user clicks "View image".

Even better, use the "Visit page" links as referers when loading the images embedded in the search listing. This effectively defeats schemes where the image is blocked or blurred when coming from Google.

Googulator avatar Feb 17 '18 00:02 Googulator

This may involve a server-side scripting, which must be hosted in somewhere such as digitalocean, which is a paid service. Also the existence of domain and server could lead the extension to have a single point of failure which is not great.

devunt avatar Feb 18 '18 20:02 devunt

Anyway, I think this is a good idea, but it is nearly impossible to implement.

devunt avatar Feb 18 '18 20:02 devunt

There is one semi-solution with adding referrerpolicy='no-referrer' and/or rel='noreferrer' to link.

AHOHNMYC avatar Feb 18 '18 21:02 AHOHNMYC

Why would server-side scripting be needed for this? The Referer header is sent by the browser, and the URL to send is available as the target of the Visit button. In a WebExtension, you can use the WebRequests API "onBeforeSendHeaders" to override the Referer header, see https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onBeforeSendHeaders

Googulator avatar Feb 20 '18 18:02 Googulator