| Add You |
Hubs | Hubbers | Topics | Request |
| #1 in Business | Subscribe Email Print |
|
You are here: Home > Internet and Businesses Online > Ecommerce > Redirect Web Visitors By Country Using ASP and COM Technology |
|
Add You - Redirect Web Visitors By Country Using ASP and COM Technology
Let Your Words Speak for You: Increasing Expert Credibility in Your Industry or Profession dex_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp.One of the quickest ways to increase credibility in your industry or profession is by writing about it. Yes, writing.Writing is inordinately undervalued by professionals in virtually every industry and profession. People who rely exclusively on the truism, "a picture is worth a thousand words," are missin <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP a Warehouse Lighting There are times when it is useful to redirect a visitor to different default web page based on the visitor's country of origin. One practical usage is to redirect visitor to web page with the language recognized by the visitor. This article shows you how using ASP and ActiveX component this can be done.A warehouse is a place where finished goods and other products are stored. These warehouses are plain buildings with large and enclosed spaces, located in industrial areas to facilitate easy accessibility when the need to use the stored products arises. They harbor a separate opening for trucks and delivery vans to simplify the Let us take a simple case study. Company XYZ is multi-national company with major customers from United States and Japan. The company official website is developed in both English and Japanese languages. The default page is in English language and visitor can switch to Japanese by changing the default language option. There exists a potential problem when a Japanese visitor does not understand English and it could not navigate the web site. So let us developed a simple solution to help Company XYZ redirecting all Internet traffic from country Japan to the Japanese language site. Meanwhile it drives the rest traffic to English site. In this example, we use a fully functional IP2Location™ ActiveX component available at http://www.ip2location.com/ip2location-country.zip to query country by visitor's IP address. For unregistered component, there is a 5-second delay in every query. First, install the ActiveX component in IIS web server. It could be as simple as running a command in DOS prompt. C:> regsvr32 ip2location.dll Let's assume the English web page as index_en.htm and Japanese web page as index_jp.htm. We implement a simple script default.asp to detect visitor's country of origin. If the visitor is from Japan, then redirect him/her to index_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp. <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP a Niches - The Path to More Profits omers from United States and Japan. The company official website is developed in both English and Japanese languages. The default page is in English language and visitor can switch to Japanese by changing the default language option. There exists a potential problem when a Japanese visitor does not understand English and it could not navigate the web site. So let us developed a simple solution to help Company XYZ redirecting all Internet traffic from country Japan to the Japanese language site. Meanwhile it drives the rest traffic to English site.Hey, as business owners we CAN'T be all things for all customers. I mean it would be fantastic if we could, however, you just can't meet the needs and wants of everyone, you would run yourself ragged trying :o(BUT ... that doesn't mean you throw your hands up in dispair and give up ;o) Stick with me for a few minutes In this example, we use a fully functional IP2Location™ ActiveX component available at http://www.ip2location.com/ip2location-country.zip to query country by visitor's IP address. For unregistered component, there is a 5-second delay in every query. First, install the ActiveX component in IIS web server. It could be as simple as running a command in DOS prompt. C:> regsvr32 ip2location.dll Let's assume the English web page as index_en.htm and Japanese web page as index_jp.htm. We implement a simple script default.asp to detect visitor's country of origin. If the visitor is from Japan, then redirect him/her to index_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp. <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP a 10 Tips on Creating the Gift of Gab For Fun And Profit to help Company XYZ redirecting all Internet traffic from country Japan to the Japanese language site. Meanwhile it drives the rest traffic to English site.Yeah! We all know them. Those disgusting people who can walk into any situation and seem to fit right into the conversation. They seem to feel at home with any crowd, and they can turn a bunch of strangers into friends in moments. In fact, they can do it in the time it takes you and me to munch a couple of dainty sandwiches, In this example, we use a fully functional IP2Location™ ActiveX component available at http://www.ip2location.com/ip2location-country.zip to query country by visitor's IP address. For unregistered component, there is a 5-second delay in every query. First, install the ActiveX component in IIS web server. It could be as simple as running a command in DOS prompt. C:> regsvr32 ip2location.dll Let's assume the English web page as index_en.htm and Japanese web page as index_jp.htm. We implement a simple script default.asp to detect visitor's country of origin. If the visitor is from Japan, then redirect him/her to index_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp. <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP a What Help is there for Veterans Starting a Business? in every query. First, install the ActiveX component in IIS web server. It could be as simple as running a command in DOS prompt.Some of the very qualities that attract people to the military life are what make them good candidates for an internet based home business. What are these qualities? A sense of adventure, an attraction to signs of leadership and the ability to discern what constitutes a good leader, courage and idealism and an understanding of C:> regsvr32 ip2location.dll Let's assume the English web page as index_en.htm and Japanese web page as index_jp.htm. We implement a simple script default.asp to detect visitor's country of origin. If the visitor is from Japan, then redirect him/her to index_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp. <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP a Blogging to Promote Your Small Business - 5 Ideas to Remember When Using a Blog for Your Business dex_jp.htm, otherwise index_en.htm. Simple? Here is the code and the comments serve as explanation default.asp.In the world of today you must be able to think creatively in order to promote your business. One way to do this is by starting and maintaining a blog. A blog can increase profits in your product or service business in a relatively short time.A blog is short for web log. They are web sites that are set up by several diffe <% ' Create server-side object Set ipObj = Server.CreateObject("IP2Location.Country") ' Initialize IP2Location object If ipObj.Initialize("demo") <> "OK" Then response.write "IP2Location Initialization Failed. End If ' Get visitor's IP address IPaddr = Request.ServerVariables("REMOTE_ADDR") ' Detect visitor's country of origin by IP address CountryName = ipObj.LookUpShortName(IPaddr) ' Free IP2Location object Set ipObj = nothing If CountryName = "JP" Then ' Visitor is from Japan ' Redirect the URL to index_jp.htm Response.Redirect "index_jp.htm" Else ' Visitor is not from Japan ' Redirect the URL to index_en.htm Response.Redirect "index_en.htm" End If %> Place this script as the default script of the web site. All visitors will go through this screening before redirect to an appropriate web page
HTTP = HTML link (for blogs, profiles,phorums):
Related Articles:Learn More About Where to Look for Real Online Jobs Ideas For Promoting Affiliate Links To Generate Internet Income
|