Yönlendirmeleri ve Referers

0 Cevap php

Bu benim gerçek uygulaması kimlik doğrulama ve diğer şeyler bir grup ile, çok daha karmaşık olduğunu, ancak basit formda, burada yaşıyorum sorun. Başlığı ile yönlendiriliyor bir referer olarak kendini ortaya koymuyor.

Start.php, middle.php ve end.php: Yani, ben üç sayfa var diyelim

start.php

<html><body>
<a href="middle.php">middle</a>
</body></html>

middle.php

<?php
header('Location: end.php');
?>

end.php

<?php
    echo 'The referer is: ' . $_SERVER['HTTP_REFERER'];
?>

Eğer bağlantıyı izlediğinizde, end.php sona ermesi, ama referer middle.php değildir. Herhangi Bunu düzeltmek için ben kullanabileceğiniz diğer yönlendirme yöntemi, ya da yapabileceğim başka bir şey var mı?

Şerefe

EDIT In this case, the destination page is a third party vendor. The only method they have to validate is from refering URL. I have no control over that. I just need my page that does the redirect to send the proper URL. Are there any alternatives to this redirection method, rather than picking apart the reasons not to trust http_referer?

0 Cevap