Skip to content
WJunction - Webmaster Forum

[REQUEST] Anonym Redirect Script

Status
Not open for further replies.
Hey guys,

Can you please help me with a script like anonym.to redirector script as i wanted one like that a nice one.

Would be much grateful,as the scripts i have don't seem to function well.

Thanks
 

10 comments

well you havent mentioned what type of CMS you are planning to integrate it into, but:

http://www.wjunction.com/showthread.php?t=23086

and also: http://hotfile.com/dl/25151679/405f355/divert.rar.html

OR (same thing, just in source format)

Code:
<?php
$ref = $_GET["ref"];
?>
<html>
<head>
<title>Redirecting...</title>
<META http-equiv="refresh" content="2;URL=<?php echo $ref;?>">
<style type="text/css">
    html {
        background: #fff;
    }
    body {
        background: #404040;
        border: 1px solid #666;
        color: #999;
        font: 14px "Lucida Grande", "Lucida Sans Unicode", tahoma, verdana, arial, sans-serif;
        margin: 5% 10%;
        text-align: center;
    }
    
    a {
        color: #FF8301;
    }
    
    h1 {
        color: #EEE;
    }
    
    #container {
        background: #292929;
        line-height: 2.4;
        padding: 1em;
    }
    
    p#url {
        font-weight: bold;
        overflow: hidden;
        width: 100%;
    }
    </style>
</head>
<body bgcolor="#000000">
<center>
<div id="container">
<p>Please wait while you're being redirected to:<br /></p>
<p id="url"><a href="<?php echo $ref;?>"><?php echo $ref;?></a></p>
<hr />
<p><a href="http://extremecoderz.com">extremecoderz.com</a></p>
<div>
</center>
</body>
</html>

The second link is a divert.php file - ripped from anonym.to - credits to avek for ripping it.


useage: divert.php? ref = http://www.google.com


(remove spaces)
 
Not sure if this is what you're looking for:

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php if (isset($_GET['goto'])) echo '<meta http-equiv="refresh" content="1;' . html_entity_decode($_GET['goto']) . '" />'; ?>
    <title>Redirecting...</title>
</head>

<body>
</body>
</html>

Save it as redirect.php somewhere and use it like mysite.com/redirect.php?goto=http://google.com

The link you feed it needs to be html encoded.
 
Hey thanks guys it works.. Jayfella u are a genious :P

Added it on my site and also intergrated it with the phpbb and works like a charm u can test it by going to a site and open a tread it will redirect to that page first. :P

cheerz dude.
 
Status
Not open for further replies.

About the author

Sponge Bob
Active Member · Joined
3,153
Messages
192
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom