Script or code to check if hotel uses a signon page

Posted on 2007-10-10
Last Modified: 2012-06-21
Some hotels require that the user signs on to the network before they can access anything on the internet

Our company uses a proxy server, which means that users that wish to get on the internet at a hotel, have to first connect to our VPN. They are unable to do this most of the time since they have not yet signed on.

Currently our solution requires that the user accesses a fake address ie ("") which we configure in the network settings to bypass the proxy server. When the address is called upon the hotel signon screen appears since the hotel sees the computer trying to access the internet. They can then signon and continue to log onto VPN. We want to automate this process. Is there anyway to script a program that will check to see if a signon page is required?
Question by:bbcac
    1 Comment
    LVL 16

    Accepted Solution

    Most hotels work in the same way as any "hotspot" or public internet access service works - by using a captive portal. Basically this means that although an IP address is allocated to the user - they do not have any Internet access until the sign-on procedure has been carried out over the capitve portal.

    As the logon script will change between hotels - and it usually requires some user input - I'm not sure how/why you want to try to script this. I assume what you are trying to prevent is your users changing their "proxy" settings in their browser settings - but in some cases (where a hotel actually uses 8080 or some other port like 800 for its own proxy) if they do not change these they will not be able to connect at all.

    There are some "connection managers" around that bascially provide the type of functionalty you are looking for - but more often than not these will probably only make life even harder for you.

    Perhaps if you could explain why you want your users to use your company proxy when they are traveling it might be easier to answer your need for a script - but bear in mind - many hotels (certainly those outside the US) will not work if the "gateway" is pushed through the VPN - becuase this in turn would cause the hotels access points DHCP server to drop the assigned IP.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now