Get de-refered!
Link Generator
Do you want to create one special link using our dereferer? Just type in your link, and get a derefer'ed version of it!
Use dereferer.org for your website
If you frequently need a dereferer, feel free to integrate the dereferer.org service into your web site - here are some code examples for common environments:
PHP example
learn more about PHP:
<?php function derefer($strUrl) { return "http://www.dereferer.org/?".urlencode($strUrl); } ?> <a href="<?= derefer("http://www.example.com") ?>">Link</a>
ASP example
learn more about ASP:
<% function derefer(strUrl) derefer = "http://www.dereferer.org/?" & server.urlencode(strUrl) end function %> <a href="<%= derefer("http://www.example.com") %>">Link</a>
JavaScript example
learn more about JavaScript:
<script > function derefer(strUrl) { return "http://www.dereferer.org/?"+escape(strUrl); } </script> <a href="http://www.example.com" onclick="window.location.href=derefer(this.href); return false;">Link</a>
Build your own
Want to build your own dereferer? It's not that hard - let me explain:
Basically, a dereferer is an ordinary, very simple HTML webpage. The core components of that page are:
- a meta-refresh tag (often referred to as meta-redirect)
- a javascript timeout
- a short message including a classic html link to the target page
Because web clients have different configurations, you have to provide multiple ways for the visitor to proceed. All three components serve the same purpose - redirecting the user - but you should offer all of them for compatibility.
Typically, a dereferer page ist dynamically generated by any server-side scripting technology of your choice - PHP is quite common, but ASP, Perl, Python etc will do as well. Please take care of url-encoding issues depending on your server environment.
A brief example for a generated dereferer page
<html> <head> <title>you are being redirected</title> <meta http-equiv="refresh" content="2; URL=http://www.example.com" /> <script> window.setTimeout('window.location.href="http://www.example.com";', 1000 * 2); </script> </head> <body> <p>you are being redirected to:<br /> <a href="http://www.example.com">http://www.example.com</a></p> </body> </html>