Welcome! Log In Create A New Profile

Advanced

Re: Possible to make subdomain only accessible through 'embed'

All files from this thread

File Name File Size   Posted by Date  
ghhdhhpkijhodmio.png 9.4 KB open | download Jore 03/12/2021 Read message
Jore
March 18, 2021 08:44AM
Hi there,

Thank you for the suggestion.

Jore


On 18/3/21 1:59 am, Ian Hobson wrote:
> Hi,
>
> I have not tried it, but I believe if you set a cookie
> on .domain.com to say that they are logged in (Note the leading .) ,
> then you can read that cookie in all sub-domains, and check they are
> logged in to domain.com.
>
> You might have to use domain.com, instead of docs.domain.com for the
> outer level.
>
> RFC6265 is the standard that modern browsers follow
> https://tools.ietf.org/html/rfc6265
>
> The clause you might need in your server {} are of nginx is
>
> if ($cookie_fileURI != "mymagicvalue") { return 403; }
>
> Where "mymagicvalue" was put in the cookie upon successful login.
>
> Regards
>
> Ian
>
> On 12/03/2021 20:56, Jore wrote:
>> Hi there,
>>
>> I have pages served from "embed.domain.com" that I'd only like to be
>> accessible when they're embedded in files served from "docs.domain.com"
>>
>> Visualisation below:
>>
>> Is it possible to lock down "embed.domain.com" so it can only be
>> accessed through "docs.domain.com"?
>>
>> Can this be done with nginx conf or another method?
>>
>> Thank you!
>> Jore
>>
>>
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Possible to make subdomain only accessible through 'embed' Attachments

Jore March 12, 2021 03:58PM

Re: Possible to make subdomain only accessible through 'embed'

Francis Daly March 14, 2021 10:52AM

Re: Possible to make subdomain only accessible through 'embed'

Jore March 15, 2021 01:26AM

Re: Possible to make subdomain only accessible through 'embed'

Francis Daly March 17, 2021 05:24AM

Re: Possible to make subdomain only accessible through 'embed'

Jore March 17, 2021 08:24AM

Re: Possible to make subdomain only accessible through 'embed'

Francis Daly March 18, 2021 04:36PM

Re: Possible to make subdomain only accessible through 'embed'

Ian Hobson March 17, 2021 11:00AM

Re: Possible to make subdomain only accessible through 'embed'

Jore March 18, 2021 08:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready