Wireless Hacks Free Open Book

Wireless Hacks

Previous Section Next Section

Hack 30 "Brought to you by" Rendezvous Ad Redirector

figs/moderate.giffigs/hack30.gif

Spam your fellow Rendezvous users with sponsored links.

Note that you may only use this hack for the forces of Good.

In [Hack #29], we saw how simple it is to advertise arbitrary services using Rendezvous in any Posix operating system, Mac OS X, or even Windows. This makes it easy to provide easy reference links to every user on your wireless network.

Wouldn't it be nice to give those same users a public service announcement en route to their destination, to let them know who was kind enough to provide the link? You could even give them more information about yourself or the network you provide before they head out to the Internet. This is easily achieved with a simple application of Apache magic.

In the httpd.conf on your web server, create a new VirtualHost entry like this:

<VirtualHost *>
  ServerName adserver.local
  DocumentRoot /home/rob/ads/
</VirtualHost>

You can, of course, call the server anything you want, and put the DocumentRoot wherever is convenient. Restart your Apache for the change to take effect. Just be sure that the ServerName ends in .local.

Now create as many html files in DocumentRoot as you like, using this as a template:

<html>
<head>
    <meta http-equiv="Refresh" content="5;http://freenetworks.org" />
</head>
<body>

<h1>This Rendezvous link brought to you by: me!</h1>

Redirecting you automatically in five seconds...
</body>
</html>

The URL at the end of the Refresh line will be the users' final destination, and the number at the beginning specifies the number of seconds to wait before redirecting. The body of the HTML can contain whatever message you want the users to see before the redirect takes effect.

Finally, advertise adserver.local (or whatever you used in your VirtualHost entry) as a proxy service using one of the methods described in [Hack #28] or [Hack #29]. In the text field of the Rendezvous advertisement, specify the HTML file you just created. For example, I save the above HTML file to /home/rob/ads/freenetworks.html, and specify path=/freenetworks.html as the text field.

Now users who share my wireless network see a Rendezvous advertisement called FreeNetworks, and are presented with the previous HTML when they browse to the site. Five seconds later, they are redirected automatically to the real http://freenetworks.org/, and are left to go about their merry way. This sort of service is ideal for permanent services on public access wireless nodes, to give users an idea of who is providing Internet access.

    Previous Section Next Section
    Index: [SYMBOL][A][B][C][D][E][F][G][H][I][J][L][M][N][O][P][Q][R][S][T][U][V][W][X][Z]


         Main Menu
    Main Page
    Table of content
    Copyright
    Credits
    Foreword
    Preface
    Chapter 1. The Standards
    Chapter 2. Bluetooth and Mobile Data
    Chapter 3. Network Monitoring
    3.1 Hacks #20-42
    Hack 20 Find All Available Wireless Networks
    Hack 21 Network Discovery Using NetStumbler
    Hack 22 Network Detection on Mac OS X
    Hack 23 Detecting Networks Using Handheld PCs
    Hack 24 Passive Scanning with KisMAC
    Hack 25 Establishing Connectivity
    Hack 26 Quickly Poll Wireless Clients with ping
    Hack 27 Finding Radio Manufacturers by MAC Address
    Hack 28 Rendezvous Service Advertisements in Linux
    Hack 29 Advertising Arbitrary Rendezvous Services in OS X
    Hack 30 'Brought to you by' Rendezvous Ad Redirector
    Hack 31 Detecting Networks with Kismet
    Hack 32 Running Kismet on Mac OS X
    Hack 33 Link Monitoring in Linux with Wavemon
    Hack 34 Historical Link State Monitoring
    Hack 35 EtherPEG and DriftNet
    Hack 36 Estimating Network Performance
    Hack 37 Watching Traffic with tcpdump
    Hack 38 Visual Traffic Analysis with Ethereal
    Hack 39 Tracking 802.11 Frames in Ethereal
    Hack 40 Interrogating the Network with nmap
    Hack 41 Network Monitoring with ngrep
    Hack 42 Running ntop for Real-Time Network Stats
    Chapter 4. Hardware Hacks
    Chapter 5. Do-It-Yourself Antennas
    Chapter 6. Long Distance Links
    Chapter 7. Wireless Security
    Appendix A. Deep Dish Parabolic Reflector Template
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele