-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use ip to initialize country for products created through the API but not directly by the client #1706
Comments
We could see if kiliweb's and other external APIs' requests originate from IPs that GeoLite2 would recognize as Alternatively, we could also limit IP detection to specific |
There are certainly some cases where some users use a proxy with the app. For example, if I use the mobile app via a public or personal Wifi which use a VPN. Thus, solution 1 doesn't guaranty that the product is scanned from my country. Why not add a new field "country_unique_ip" which count how many unique IP addresses ask for a product in each country. An example of value: "be:148,fr:2,nl:5" => this product may have been created by an IP from the Netherlands (where there are many VPN companies) but is clearly related to Belgium. |
Yuka (and other app) could give the country information when they call OFF api. They should know from which country is called their own app, no ? |
Products created on the web site or through the API have a country assigned by default, based on the IP address. This does not work when the API is accessed by a server (e.g. on Amazon) instead of actual users (apps that send API calls directly from the phones).
Current code in Products.pm:
The ugly fix won't work soon since Yuka is getting into other countries.
Possible solutions:
Thoughts?
The text was updated successfully, but these errors were encountered: