-
-
Notifications
You must be signed in to change notification settings - Fork 76
How to access protected pages
Zoomable image viewing pages can be restricted in different ways.
- Sometimes, they are on a site where you have to be logged in to view the images.
- Sometimes, the site tries to detect where you are requesting the image from. If you are requesting it from a foreign site, it may return a 403 Forbidden response.
In both cases, the restriction can be lifted by sending the right HTTP headers to the site. dezoomify has some support for that.
In the first case, when the page is protected by login, the site usually learns about the connected users via cookies. You can have dezoomify send the necessary cookies to the site by following this procedure:
- Find the cookie that authenticates you on the site.
- (in firefox, from the site's page, you can do "Ctrl-I" > "Security" > "View Cookies"
- Open dezoomify.
- Open the web console inside dezoomify. (In firefox: Ctrl-Maj-K)
- Type:
ZoomManager.cookies = "Cookie1=Value1; Cookie2=Value2"
(replace Cookie1, Value1, etc., by the actual name of your cookies, that you found at step 1). - Paste the Url of your session-protected page in dezoomify, as you would do normally.
- Press Submit
- Enjoy
During normal navigation, when loading a new page, your web browser sends to the server the URL of the previously visited page, in the Referer HTTP header. When loading the image tiles from dezoomify, your browser sends to the image server the information that you are currently visiting dezoomify, and not their own site. Some servers might then block the request, and return a 403 Forbidden response.
Dezoomify has an option to proxy tile requests through another server instead of loading them directly from your browser. This other server can then spoof the Referer header, to hide the fact that the request does not come from the site itself.
In order activate the tile proxy, just open your browser console before starting the dezoomification, and type:
ZoomManager.proxy_tiles = "proxy.php";