Jump to content
php.lv forumi

htaccess


Recommended Posts

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
Link to comment
Share on other sites

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