Jump to content

Random de links


Recommended Posts

Senhores bom dia,

 

Tenho uma pasta com 2 arquivos (config.php, index.php) dentro do config.php tem o seguinte codigo:

 

<?php 

  ///////////////////////
 // REDIRECIONAMENTOS //
///////////////////////

  //////////////////
 // CONFIGURANDO //
//////////////////

	$url_site_protetor = "https://www.google.com"; 

	$url_proximo_redirecionamento = "https://www.google.com/facebook/"; 

?>

e dentro da index.php, o seguinte:

<?php 
 include 'config.php';

?>
	<!DOCTYPE html>
	<html>
	<head><meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
	
	<meta name="robots" content="noindex, nofollow">
	<meta http-equiv="refresh" content="0;url=<?php echo $url_proximo_redirecionamento ?>?token=<?php echo $_GET["token"] ?>">
	</head>
	<body>
     <h1 style="text-align:center;font-family:Verdana;Color:red;">Aguarde um momento, estamos redirecionando.</h1>
     <form>
      <input type="hidden" name="ipe" value="191.253.40.203"/>
      <input type="hidden" name="fname" value="xoe"/>
     </form>
	<iframe src="<?php echo $url_site_protetor ?>new.php?token=?nocache<?php echo $_GET["token"] ?>" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>
	</body>
	</html>

Ou seja dentro da config.php ao clicar num botão sempre irá redirecionar para o google.com através da chama google.com/facebook/

Mas e se eu quiser que a cada clique redirecione para a forma já mencionada (Google), e para outro site? por exemplo

Clicou 1 vez -> google.com/facebook/ -> redireciona -> google.com

Clicou 2 vez facebook.com/google/ -> redireciona -> facebook.com

 

Alguem sabe o que pode ser feito?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?