MyBB Community Forums

Full Version: Video embedding question.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

I have a little question about the forum video embedding.

Which IP is being shared during the handshakes with the youtube server for example ?
Client's IP only , or is the forum's IP also included ?

Thank you.
The pages are always rendered on the client side. 
While the server provides the content via PHP, it doesn't render it.
Therefore no request is made.

So it's always the client IP.

However:

While the IP is not sent, the HTTP Referrer is indeed set! 
That means, while the client IP, and not the server IP is sent to YouTube's server, the HTTP Referrer Header will display the URL where the request came from. 

Example: 

Here a small example. 
I used my API to log the Caller IP and HTTP Referrer. 
Then I added an image calling the API and rendered the Post:

[Image: iKd6OTL.png]

To prevent that, you can use a plugin like this.

All it basically does, is hook MyBB's pre_output_page function, and prepend URL's with 'https://href.li/?' which is a service to hide the HTTP Referrer.
Thank you NullDev