Jump to content

Recommended Posts

Posted (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 by playfun
Posted (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.


<?php
if($_SERVER['HTTP_REFERER']=='y.ro')
{
header("location: http://cevaxxx.ro");
}
?>

Daca nu te descurci PM si te ajut.

Edited by Worm64

Join the conversation

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

Guest
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.



×
×
  • Create New...