Most webmasters aim to drive more and more visitors to their websites.
But sometimes, you may not want to drive visitors further into your sites...
Where can you send them?
To send them nowhere, just link to :
You can define yourself the theme (image, text and sound) to be used on the page.
your favourite themes for "I am lost" - they will be included in the theme list.
Filtering:
To filter visitors to "I-am-lost.net" depending on their origin, all you have to do is to add this following code at the beginning of your page:
<?php
$iOrigin_To_Reject = 'unwanted.com'; // the unwanted origin
// domain name (without the "www.")
if (isset($_SERVER['HTTP_REFERER']))
{
$iUrl = parse_url($_SERVER['HTTP_REFERER']);
$iOrigin = substr($iUrl['host'],-strlen($iOrigin_To_Reject));
if ($iOrigin==$iOrigin_To_Reject)
{
header("Location: http://I-am-lost.net/");
exit;
}
}
?>
It is possible to create your own "I am lost" page by using parameters in the page URL.
Parameter names are:
| msg |
message displayed: - msg="you are completly lost..." |
| img |
background image url or predefined image identifier: - img=http://i-am-lost.net/img1.gif - img=[1] (image list) |
| snd |
background sound url or predefined sound identifier: - snd=http://i-am-lost.net/sound1.mp3 - snd=[2] (sound list) To play the sound and loop infinitely, add an asterisk ("*") at the end of this parameter value. |
These parameters can be set either with a GET or a POST method:
GET method
This is the easiest way to do it:
<a href="http://i-am-lost.net/?msg="new message..."&snd="[1]*">go there...</a>
POST method
The URL will be tidier but the code is more complex:
<form id="f" method="post" action="http://i-am-lost.net/index.php">
<input type="hidden" name="msg" value="new message...">
<input type="hidden" name="img" value="http://i-am-lost.net/img1.gif">
<input type="hidden" name="snd" value="[1]*">
</form>
<a href="http://i-am-lost.net" onClick="f.submit();return false;">go there...</a>
"I-am-lost.net" detects the preferred language of visitors and is available in different languages:
If you want to translate the welcome sentence to your language, you are more than welcome...
Just contact us at