If I get the site using javascript on the client side, what will the site see as requesting ip? My server or client?

I am creating an application in which the user can sometimes search. I would like to run a search through google, but I'm not sure that I have many users if I delete the Google search quota. Any user will not make more than one or two requests per day in the application. But collectively, this could potentially be much more.

Will client side google request avoid this problem and not identify my server as ip source?

+4
source share
2 answers

Yes, if you execute a GET request from the client, the client IP address will be the source IP address

+3
source

Since you are performing a GET on the client side, a TCP / IP connection is opened by the client. Thus, this will be the IP address of the client, which the site will see as the requesting IP address. However, if you want the site to see your IP instead, you can redirect the request through AJAX to your server, ask the server to execute a GET and send the results asynchronously back to the client.

+2
source

Source: https://habr.com/ru/post/1382101/


All Articles