![]() ![]() ![]() IP Locator is a freeware which lets you easily locate IP address on Google Maps.Įverybody on the web world has a unique IP address, and once you get any exact IP address, you can easily find the physical location of that IP. If you have any intention to locate IP address on Internet there is no better way than using Google Maps. This surely makes it a powerful combination. Return false // Should be a normal user browsing my website using a browser.Google Maps is undoubtedly the best tool to track down any location on the planet earth and how about using the same program to locate IP address. Rule 1: Request which contains "Cookie" // Header with "ASP.NET_SessionId" // and its value is equal with server side, // then it should be a normal user (except maliciously forging, // I don't think a crawler will firstly request a sessionID // and then request again with the SessionID). Talk is cheap, show me the code, I wrote a method to identify crawlers by applying two rules above. ![]() ĭefine a crawler list and analyse whether "User-Agent" header contains one of them, this should be configurable. However, I don't think a crawler will firstly request a SessionID and then request again with the SessionID). Assume there is a crawler who crawls my website and accept storing cookie, then #1 will not be effective.If user's browser has disabled Cookie, then this rule will NOT be effective since the client request will never contain a Cookie header since the browser disabled it :).Notes: There might be two exceptions for rule #1. Request which contains " Cookie" Header with " ASP.NET_SessionId" AND its value is equal with server side, then it should be a normal user who has just visited my website within the one session. ![]() If the result is " 0.0.0.0", I will ignore it.įor #2, so far I haven't found a " perfect way" to solve this issue (and I guess there might be no perfect solution to identify all the search engines in the world, please correct me if I am wrong) However, I've defined two rules to try my best to identify them for general and normal situations: Rule #1 Public static Boolean IsValidIP( string ip)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |