renathy Posted December 2, 2011 Report Share Posted December 2, 2011 (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 December 2, 2011 by renathy Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 2, 2011 Report Share Posted December 2, 2011 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. Quote Link to comment Share on other sites More sharing options...
renathy Posted December 2, 2011 Author Report Share Posted December 2, 2011 (edited) Es nesapratu... Man vajaga, lai support, help, feedback iekš mypage.net pieņem pieprasījumus tikai no vienas citas konkrētas lapas - https://www.citalapa.com[...] vai https://citalapa.com[...] Bez tam man nav pieejas mypage.net lapu kodam. Es varu tikai izveidot htaccess, kur tas nepieciešams. R. Edited December 2, 2011 by renathy Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 2, 2011 Report Share Posted December 2, 2011 Bez tam man nav pieejas mypage.net lapu kodam. Tad mans variants atkrīt. Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted December 3, 2011 Report Share Posted December 3, 2011 Ko vispaŗ nozīmē katra no rindiņām? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.