• Girl in a jacket
    Use the buttons to help the community. Admins and Moderators will delete not working content!
  • Note that we do not host any files on our servers; users just link to it. If you wish to have content removed, please contact the host of the file.

Sinfulsite.com Make a Redirect Page

Content from Sinfulsite.com

Jitter


Heaven
Joined
Dec 5, 2020
Messages
117,568
Likes
61,632
Awards
8
Etercoin
0
LV
25
 
This Thread had not been rated yet
1, Add to Footer/Header/headerinclude template.

Code:
<script type="text/javascript" >
$$('div.post_body a').each(function(s){
link=s+'';
if(!link.include('yoursite.com') && !link.include('javascript') && !link.include('mybb.com') && !link.include('site1.com') && !link.include('site2.com')){
s.href="redirect.html?link="+encodeURIComponent(link);
s.target="_blank";
}
});
</script>

2, Create "redirect.html" file in the root directory.

Code:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style>
#panel{
width: 500px;
border: 1px solid;
border-color:#999999;
margin:50px auto;
padding: 8px;
font: 12px tahoma;
text-align:center;
background-color:#fcfbf7;
}
</style>
</head>
<body>
<script type="text/javascript">
var link=decodeURIComponent(location.search.substr(6));
second = 10; //Wait time in seconds
function AutoRedirect(){
document.getElementById('time').innerHTML=second;
if(second==0){
location.href=link;
}
second--;
}
</script>
You clicked on a link that not belong to our site.
<script type="text/javascript">
document.write(""+link+"")
</script>
Auto redirect in
second(s).
<script type="text/javascript">
AutoRedirect(second);
setInterval("AutoRedirect(second)",1000);
</script>
</body>
</html>
 
This Thread had not been rated yet
Debrid Link

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.



User Menu