Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTrack possible using cookies

Tags:

php

httrack

I want to download the page from a URL, easy enough. But on the first page I have to login, as I normally do from a normal browser. But HTTrack is downloading from the first page since it can't use my cookies or login.

Is it any way for me to get around this?

like image 653
Malin Pedersen Avatar asked Dec 03 '13 22:12

Malin Pedersen


People also ask

Is HTTrack safe to use?

Offline browsers tools, like HTTrack, can be used in a WRONG way, and therefore are sometimes considered as a potential danger.

Is HTTrack a virus?

A: For the software itself: All official releases (at httrack.com) are checked against all known viruses, and the packaging process is also checked. Archives are stored on Un*x servers, not really concerned by viruses.

How does HTTrack website copier work?

HTTrack allows users to download World Wide Web sites from the Internet to a local computer. By default, HTTrack arranges the downloaded site by the original site's relative link-structure. The downloaded (or "mirrored") website can be browsed by opening a page of the site in a browser.


1 Answers

This question was asked in 2013 so I don't know if Httrack was supporting cookies back then, but now it definitely does.

Instructions:

  1. Login to your website using Firefox or Chrome, then look at the login cookie.
  2. Inside the Httrack folder where you are downloading your website, there should be a file named cookies.txt, if not, create one.
  3. Copy the cookie information from your browser to this file. You might also have to copy your useragent from your browser to the Httrack config.
  • If you don't know how to look at your cookies, it's pretty simple...
    You can either install an extension like Get cookies.txt to export cookies, or use the Developer Tools like so:
    Firefox: F12 -> Storage -> Cookies
    Chrome: F12 -> Application -> Storage -> Cookies

Example of a cookie.txt for Httrack:

www.httrack.com TRUE    /       FALSE   1999999999  foo bar
www.example.com TRUE    /folder FALSE   1999999999  JSESSIONID  xxx1234
www.example.com TRUE    /hello  FALSE   1999999999  JSESSIONID  yyy1234

Reference: http://httrack.kauler.com/help/Cookies

like image 136
Frank Einstein Avatar answered Oct 17 '22 23:10

Frank Einstein