Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

Nepieciešams, lai pie dažām lapām (support.somepage.com, help.somepage.com un feedback.somepage.com) varētu piekļūt tikai no Referer https://www.mypage.net un https://mypage.net domēniem (respektīvi arī https://www.mypage.net/test/index.aspx utt.)

 

Vienīgais, ko atradu ir kkas tāds:

 


RewriteEngine On
RewriteCond %{HTTP_REFERER} !(www.)?example.com/download-page.php
RewriteRule .* - [F]

 

 

Bet kā to attiecināt uz manu gadījumu un subdomain-iem (support.somepage.com, help.somepage.com un feedback.somepage.com)

Ko vispaŗ nozīmē katra no rindiņām?

...

Edited by renathy
Posted

Iekš mypage.net uzģenerējam unikālu tokenu. Iekš support.*, help.* un feedback.* pārbaudam vai tokens eksistē un vai sakrīt ar uzģenerēto tokenu.

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...
×
×
  • Create New...