Skip to Content
Wireless Hacks
book

Wireless Hacks

by Rob Flickenger
September 2003
Intermediate to advanced
304 pages
8h 39m
English
O'Reilly Media, Inc.
Content preview from Wireless Hacks

“Brought to you by” Rendezvous Ad Redirector

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Maximum Wireless Security

Maximum Wireless Security

Cyrus Peikari, Seth Fogie
Real Time Over Wireless

Real Time Over Wireless

Jerome Henry / Rob Barton

Publisher Resources

ISBN: 0596005598Catalog PageErrata