We have created a demo project that test crawler login support for websites that use
session cookies.
Session cookies is the most commonly used method for website login systems. Most of these website logins use POST method for transferring login and user data. It is what PHP defaults to when using
start_session.
(Another popular login mechanism is "Basic realm authentication" which is also supported by our website crawler.)
Note:
Unfortunately A1 Website Download currently only supports session cookie login across
http and not
https.
You can
online test or
download zipped demo website with login support.
For immediate testing, download the
zipped demo project file as well.
The username and password required to login successfully is highlighted on the
login
page.
- First test manually that login support works:

Notice how all pages after login all state user is logged in.
- We configure the website crawl root directory:

This is done in
Scan website > Paths.
-
We check the source of the login page:

- You can View source in e.g. FireFox.
-
If the URL in <form> tag action attribute is empty,
it means the action destination URL is the same as the login page URL.
- The name attribute in the <input> tags vary from website to website.
-
We configure the login options:

This is done in
Scan website > Crawler identification.
-
- When manually testing login you can use a FireFox plugin called Live HTTP Headers to see the headers transferred during the login process. Here is how to do:
- Get FireFox Live HTTP Headers plugin
- Try make a website login in FireFox browser.
- Focus on the HTTP header data from the first page.
- Notice the website address FireFox connects to.
- Notice the content (POST data query string) it sends.
- Check the HTML source of the website login page
- Search for <form> and <input> tags related to website login.
- Use this data to configure headers to send.
- If you still have trouble getting login to work, you can also use the general protocol analysis tool WireShark.
-
We need to filter out all URLs that will cause website logout during crawl:

This is done in
Scan website > Crawler filters.
-
Start website scan. An easy way to test and verify login works is by using
A1 Website Download.
Just view the downloaded pages: They should all state logged in.