Customizing Hotspot

Hi guys
I have a PPPOE server authenticating users whic is in turn connected to my MT box running hotspot.
I want hotspot to identify users by their IP address and only display hotspot LoginPage after the user has downloaded 10mb.
Pls, where can I start from.