Nop 3.50 Does not show user location

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
I looked into the permissions and they are all OK. Couple of things I can think of:
1. The Geolite2-.....mmdb is currently located in my App_Data folder. Is yours located in a different location? Perhaps Nop can't find the file because it's in the wrong location...

2. Is there a way to see the actual IPs in the server of the "guest" users (right now they show as 2a07) Worst case scenario, I would want to go to Cloudflare and block them there but I would need to see their real IP.  The REAL issue I am having is that I have bots that appear as "Guest" and show no IP. I need to pinpoint their location or IP in order to block them. But if Nop doesn't show their IP, how can I block them?

I was told there is an issue with Nop 3.50 that it can't translate 2a07 IPs but perhaps there is a way to see the actual IPs in the server log. This is what I was told:

"Each HTTP request has IPv4 or IPv6 address
I think the issue was in nop 3.50 (old ASP.NET) and this old ASP.NET doesn't work with IPv6
I checked my old ASP.NET code and I saw that old ASP.NET converted IPv6 to IPv4.
The new IPv6 can't convert to IPv4"
3 года назад
Going through the code I see that there is a StoreIpAddresses setting, double check "Store IP addresses" is checked in yourwebsite.com/Admin/Setting/CustomerUser (or the equivalent in 3.50)

1.  /App_Data/GeoLite2-Country.mmdb is correct.  It should log exceptions for something like a file not found (assuming you have logging enabled), but it won't log IP Address not found exceptions.  

2.  Maxmind says their db should handle IPV6: https://support.maxmind.com/ipv6-data-faq/
As far as how 3.50 handles it, you're back at debugging the source code.  In 4.3+ the IP address is saved in an action filter: https://github.com/nopSolutions/nopCommerce/blob/9e9795d91c884a4d2edbc778169e29f819914bdb/src/Presentation/Nop.Web.Framework/Mvc/Filters/SaveIpAddressAttribute.cs#L66
3 года назад
af1racing wrote:
Going through the code I see that there is a StoreIpAddresses setting, double check "Store IP addresses" is checked in yourwebsite.com/Admin/Setting/CustomerUser (or the equivalent in 3.50)

1.  /App_Data/GeoLite2-Country.mmdb is correct.  It should log exceptions for something like a file not found (assuming you have logging enabled), but it won't log IP Address not found exceptions.  

2.  Maxmind says their db should handle IPV6: https://support.maxmind.com/ipv6-data-faq/
As far as how 3.50 handles it, you're back at debugging the source code.  In 4.3+ the IP address is saved in an action filter: https://github.com/nopSolutions/nopCommerce/blob/9e9795d91c884a4d2edbc778169e29f819914bdb/src/Presentation/Nop.Web.Framework/Mvc/Filters/SaveIpAddressAttribute.cs#L66


Thanks. Yes, that setting was already on (customer location)...
I guess, debugging the code would be an alternative. Thanks for all your input.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.