1

Assume a Javascript plugin, for a developer, that's included on their website.

<script src="https://external.com/plugin.js"></script>

The plugin makes a XHR request to a 3rd party endpoint (API). So, which IP is detected at that endpoint? Is it the developer's host IP, the client IP running the script, the external script's IP?

Throttling happens per IP. So just wondering which IP is sent in this scenario. Not in a position right now to run tests.

Glorfindel
3,1676 gold badges28 silver badges34 bronze badges
asked May 2, 2019 at 8:17

1 Answer 1

6

The browser will download the contents of the JavaScript file and execute it - this all happens on the client's machine, so the XHR request will have the IP address from the client. It doesn't really matter if the script is externally hosted or embedded directly into the HTML.

answered May 2, 2019 at 9:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.