VARKEY

Asianet Dataline Night Unlimited – Auto Login

by on Nov.08, 2009, under Internet

Here are the updated instructions for Asianet Dataline Auto Login – Thanks to Vasu d’ evan

Step 1: Download and install Firefox –> http://www.mozilla.com/en-US/firefox/personal.html

Step 2: Download and install Firefox add-on “Secure Login” –> http://securelogin.mozdev.org/

Step 3: After installing the add-on, open fiefox and in the address bar type “about:config” which will take you to the Firefox configuration settings after you click the “I will be careful, I promise!” warning.

Now, in the filter box you type “secureLogin”, which will give you the settings for the add-on, here you change the “extensions.secureLogin@blueimp.net.autoLogin” value to “true” by double-clicking it. In this way the username and password saved by you would be automatically used by “secure login” to login to your ADL account.

Step 4: Open the ADL login page (mine is “https://mwcp-tvm-02.adlkerala.com:8001/”) and type in your username & password to login. Secure login will check if you want it to remember the password, say Yes! (This method works even without the secure login add-on, however, I found secure login to be useful and makes life all the more easier)

Step 5: Download and install the Firefox add-in “Reload Every” –> http://reloadevery.mozdev.org/

Step 6: After installing Reload Every navigate to the ADL login address, secure login will automatically log you in. Now using the Reload Every, you can simply “refresh” the login, i.e., you can set Firefox to send the same information again after a specified time-interval (I prefer 5 mins)

Note: When activated, Reload Every immediately asks whether you would like to resend info (click on RESEND). Unlike other WebPages being refreshed, when refreshing the login page of ADL, you are asking Firefox to resend your Login info (POST DATA). Thus, Reload Every checks back (after the initial time interval specified by you, 5 min in my case), whether you are ok with this. Once you click on YES, it will work perfectly fine from then on.

Step 7: Reload Every fails sometimes if it does not get enough bandwidth/memory allocation. Thus to ensure that it works smoothly, set your max download speed to a little less than your actual max. speed. For example I have a max. speed of 29-30 kbps for downloads. So in my Bit Torrent client, I set a max download speed of “25 kBps”. This ensures that Reload Every works perfectly fine and I am never disconnected.

18 comments for this entry:
  1. How to Schedule Downloads – Asianet Dataline Night Unlimited - VARKEY

    [...] : I have posted the new instructions for configuring the automatic login thanks to Vasu d’ evan’s comment! 41 comments for this [...]

  2. Vijayaraj V R

    -Install Python 2.6 and use the following script
    -Copy the following script to a file and save as “C:\AutoADL.py”
    -Schedule it to run every 5/0 mins using windows scheduler or JIT and forget it. ADL will not ask for your password in the future
    - Do not forget to enter your username and password in the script.(asianet_user and asianet_password)
    - Can be used in linux as well.

    —-Script body begins- exclude this line and text above this line—-

    # Asianet Dataline Automatic login script – ver 0.9
    # – Detects the connection status
    # – Detects the current Asianet login server automatically
    # – i.e automatically finds out whether it is
    # https://mwcp-tvm-03.adlkerala.com:8001/ or https://mwcp-tvm-04.adlkerala.com:8001/
    # – logs in automatically, only if not already connected.
    # – usage – just change the values of ‘asianet_user’ and ‘asianet_pass’
    # – and schedule it to run periodically to keep your connection alive
    # – Note: ping is not used for connection checking. It doesn’t work with my connection
    # Copyright V R Vijayaraj. contact vrvijai[at]gmail.com

    import httplib
    import time
    import urllib
    import os.path

    #variables – modify according to your needs
    asianet_user = ‘Type Your Username Here’
    asianet_pass = ‘Type Your Password Here’
    accept = ‘Login’
    connection_check_url = ‘www.google.com’
    connection_check_resource = ‘/intl/en/privacy.html’
    log_file = ‘c:\connection.log’

    # file for storing the current login url
    url_file = ‘c:\loginurl.txt’

    #save the current login url

    def SaveLoginUrl(url):
    urlfile = open(url_file, ‘w’)
    urlfile.write(url)
    urlfile.close()

    # load the last saved url
    def LoadLoginUrl():
    url = ”
    if os.path.exists(url_file):
    urlfile = open(url_file, ‘r’)
    url = urlfile.readline()
    urlfile.close()
    return url

    # function for logging
    def LogMessage(message):
    log = time.ctime()+ ” – ” + message + ‘\n’
    logfile.write(log)

    #send keep alive signal to keep the connection alive
    def SendKeepAlive():
    LogMessage(“Sending KeepAlive Signal..”)
    url = LoadLoginUrl()
    params = ‘alive=y&un={0}’.format(asianet_user)
    response = urllib.urlopen(url, params).info()
    LogMessage (“Response = {0}”.format(response.status))

    # login to asianet
    def LoginToAsianet(url):
    LogMessage(“Logging in to Asianet..”)
    SaveLoginUrl(url)
    params = urllib.urlencode({‘auth_user’: asianet_user, ‘auth_pass’: asianet_pass, ‘accept’: accept})
    response = urllib.urlopen(url, params).info()
    LogMessage (“Response = {0}”.format(response.status))
    if response.status == 200 or response.status == 202 or response.status == “”:
    LogMessage(“Login Successful”)
    else:
    LogMessage(“Login Failed. Try again later..”)

    #checks the current connection status
    # tries to connect to the given URL
    # if not logged in Asianet redirects it to login page
    # which can be detected from the status (302).
    # retrieves the login url from the header and calls login function

    def CheckAndConnect():
    conn = httplib.HTTPConnection(connection_check_url)
    connected = 0
    try:
    LogMessage(“Checking connection status..”)
    LogMessage(“Connecting to {0}”.format(connection_check_url))
    conn.request(“GET”, connection_check_resource)
    r1 = conn.getresponse()
    conn.close()
    LogMessage (“Response = {0}”.format(httplib.responses[r1.status]))
    if r1.status == 200 or r1.status == 202:
    LogMessage(“Active connection present”)
    SendKeepAlive()
    if r1.status == 302:
    LogMessage(“Couldn’t connect to google”)
    loginurl = r1.getheader(‘location’).split(“?”)[0]
    LoginToAsianet(loginurl)
    except:
    LogMessage(“Network error. Check your connection”)

    logfile = open(log_file, ‘a’)
    logfile.write(” \n”)
    CheckAndConnect()
    logfile.close()

  3. Vijayaraj V R

    Indentation is lost in the above script due to limitations of comment text box. contact me vrvijai[at]gmail.com if you need the original script file.

  4. JINU

    …..Dear Vijayaraj V R …i’d really appreciate it if u could post the script to jinu34us@yahoo.com……My ADL server is “https://mwcp-ekm-03.adlkerala.com:8001/”….mayb u cld send me a script having this server…………

  5. deepu

    send it to me too plz…..
    deepuvjy90@yahoo.co.in

  6. prinz

    me tooooo
    prinz92gmail.com

  7. VARKEY

    ^ I have sent the script to your mail. :)

  8. prinz

    plz help ..i hav maild u…..

  9. denz29

    plz mail me this script . my mail id is densenfelix@gmail.com, my adl server is “https://mwcp-ekm-04.adlkerala.com:8001/”, mail me urgently as my adl connection is so weak that i hav too login every 5-10 mins

  10. ABY

    plz mail me my id

    tvm-04

  11. ABY

    thank you sending the script

  12. ABY

    my files r in these location

    “C:\login\Python26\python.exe C:\login\AutoADL.py”

    how to write the command

    “”showing file name or directory name or volume label syntax incorrect”".

    without the scheduler i can automatically login by clicking the file(AutoAD.py).plzzz help

  13. SAJI

    PLEASE SEND THE SCRIPT

  14. VARKEY

    Please check my updated new post, I have posted the script there.

    http://www.varkey.in/2010/06/asianet-dataline-auto-login/

  15. Dr. Biji Thomas George

    ADL Autologin is designed for Asianet Dataline users, especially those on Limited Data Packages.

    It has been a frequent problem to keep manually logging in with your Username and Password each time you want to browse the Internet.

    Sometimes you may want to Login to ADL as soon as the computer is booted up.

    Other times you may want to login or logout at specific times. Especially those on the very popular HOMENET475 package get free browsing from 2:00 AM to 8:00 AM. It is quite a chore to keep awake and to download what you need at 2:00 in the morning all the time. Methods are available but are cumbersome for those with little programming experience.

    Also, there is no fast way to find out how much of your monthly quota of Data you have used. You have to make a separate login and then only you can find out your total usage. Sometimes you exceed the allotted limits because you failed to notice that you overstepped the limits. And then you have to pay excess charges at very high rates!

    Now ADL AutoLogin is here to rescue you from all these problems.

    Download at:
    http://sites.google.com/site/adlautologin

    Don’t forget to leave your feedback.

  16. btgeorge

    ADL Autologin is designed for Asianet Dataline users, especially those on Limited Data Packages.

    It has been a frequent problem to keep manually logging in with your Username and Password each time you want to browse the Internet.

    Sometimes you may want to Login to ADL as soon as the computer is booted up.

    Other times you may want to login or logout at specific times. Especially those on the very popular HOMENET475 package get free browsing from 2:00 AM to 8:00 AM. It is quite a chore to keep awake and to download what you need at 2:00 in the morning all the time. Methods are available but are cumbersome for those with little programming experience.

    Also, there is no fast way to find out how much of your monthly quota of Data you have used. You have to make a separate login and then only you can find out your total usage. Sometimes you exceed the allotted limits because you failed to notice that you overstepped the limits. And then you have to pay excess charges at very high rates!

    Now ADL AutoLogin is here to rescue you from all these problems.

    Download at:
    http://sites.google.com/site/adlautologin

    Don’t forget to leave your feedback.

  17. Renold

    Hi dude,
    Your work is very much appreciated…

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...