Jump to content
php.lv forumi

URL redirektošana caur kādu proxy saitu


jurchiks
 Share

Recommended Posts

Ir admina panelis, kurā ir tiešie linki uz citiem saitiem. Pats par sevi saprotams, citi saiti savos access logos redz admina paneļa URLi kā referreri. Vajag, lai redz kādu citu referreri.

Jautājums - vai ir kāds bezmaksas saits, caur kuru var prokšot pieprasījumus uz citiem URLiem, piemēram, šādi:

http://www.somesite.lv?url=your+url+here

has redirekto uz your+url+here

?

Link to comment
Share on other sites

Tad labi.

 

Un vēl vari izmantot rel="noreferrer":

http://no-ref.appspot.com/

No shipping browser currently supports this

...? + mans priekšnieks un vairums viņa "čomu", tai skaitā cilvēks, kurš tajā acp visvairāk darbosies, laiž ar FF. Edited by jurchiks
Link to comment
Share on other sites

Visus linkus adminpanelī pārvērs par http://domens.com/redirect.php?url=URL. Savukārt redirect.php satur:

<!DOCTYPE HTML>
<html>
<head><title>Gaidi...</title></head>
<body>
    <?php if (isset($_GET['url'])): ?>
        <script>
            document.location.href = "<?php echo urldecode($_GET['url']); ?>";
        </script>
    <?php else: ?>
        Missing URL
    <?php endif; ?>
</body>
</html>

Koda sākumā vajadzētu pārbaudīt vai pilsonis ir ielogojies, lai tavu skriptu nesāktu izmantot slikti cilvēki. Piemēram, es.

Link to comment
Share on other sites

otrs variants, darīt to pašu, ko Fellony saka, tika servera pusē taisīt redirect un vēl papildus nočekot esošo referreri, vai tas ir no tavas lapas.

Tas nedarbosies. Servera puses redirect saglabā referer no avota. Arī draugiem nodod referera informāciju no avota.

Edited by F3llony
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
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.

Loading...
 Share

×
×
  • Create New...