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
Francis Daly
March 14, 2021 10:52AM
On Sat, Mar 13, 2021 at 07:56:35AM +1100, 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"

> Is it possible to lock down "embed.domain.com" so it can only be accessed
> through "docs.domain.com"?

If you mean "a http request to the embed.domain.com site must only get
a response if the request was made by a user clicking a link on the
docs.domain.com site", then that can't be done reliably. That's the
nature of http.

You could do something like block external access to embed.domain.com
altogether, and use nginx to reverse-proxy requests to it behind
http://docs.domain.com/embed/, for example.

That would mean that all external http requests would go to
docs.domain.com; but it still does not mean that a request to
docs.domain.com/embed/ came from a user clicking a link somewhere else
on docs.domain.com.

It may or may not match what you want.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
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: 295
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