playfun Posted June 3, 2015 Report Share Posted June 3, 2015 (edited) Buna ziua, vin si eu cu o mica intrebare. Vreau pe x.ro/banner.php, sa pun codul urmator <meta HTTP-EQUIV="REFRESH" content="0; url=http://cevaxxx.ro/$banner">, dar http://cevaxxx.ro/$banner sa fie accesibil doar daca este accesat prin site-ul y.ro, pot face in banner.php ca http://cevaxxx.ro/$banner sa se vada, desi este pe site-ul x.ro, ci nu in y.ro ?, tinand cont ca http://cevaxxx.ro/$banner se deschide doar daca este accesat dupa y.ro ? Edited June 3, 2015 by playfun Quote Link to comment Share on other sites More sharing options...
robertutzu Posted June 3, 2015 Report Share Posted June 3, 2015 nu am inteles dar poate te ajutaif( $_SERVER['HTTP_REFERER'] == 'y.ro' ) echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://cevaxxx.ro/$banner">'; Quote Link to comment Share on other sites More sharing options...
Worm64 Posted June 3, 2015 Report Share Posted June 3, 2015 (edited) Poti sa schimbi reffererul folosind curl.<?php$url_referer='http://www.google.com'; // aici pui refererul dorit.$ch = curl_init();curl_setopt($ch, CURLOPT_URL,$_GET['url']);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_REFERER,$url_referer);$html = curl_exec($ch);print $html;?>Pentru filtrare pe referer.<?phpif($_SERVER['HTTP_REFERER']=='y.ro'){ header("location: http://cevaxxx.ro");}?>Daca nu te descurci PM si te ajut. Edited June 3, 2015 by Worm64 Quote Link to comment Share on other sites More sharing options...