Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Link forzato

  1. #1

    Link forzato

    ciao,

    c'è un sistema per cui una pagina si può visualizzare solo passando per un determinato link?? e invece nn si visualizza se cambi l'url??

    grezie ciao
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    La pagina deve essere scritta in PHP.
    Poi puoi fare un controllo del referer; ad esempio: se l'utente proviene dalla pagina x.y allora mostri l'output.

    $_SERVER["HTTP_REFERER"];

  3. #3
    puoi farmi un esempio?? non mi è molto chiaro
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  4. #4
    Codice PHP:
    <?
    if ( $_SERVER["HTTP_REFERER"] == "..." )
    {
     include 
    "pagina.htm";
    }
    else
    {
     echo 
    "Errore!";
    }
    ?>
    Oppure:

    Codice PHP:
    <?
    if ( $_SERVER["HTTP_REFERER"] == "..." )
    {
     echo 
    "Accesso consentito!".
    }
    else
    {
     echo 
    "Errore!";
    }
    ?>

  5. #5
    grazie ora provo..
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.