| | #1 |
| Active Warrior War Room Member Join Date: 2011
Posts: 76
Thanks: 0
Thanked 4 Times in 4 Posts
|
I have a html website. If I want to target my website to Germany alone, is there a code I need to implement in the files except from the WMT settings? Thanks |
| |
| | #2 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
Can be done via jQuery...
|
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| | #3 |
| Active Warrior War Room Member Join Date: 2011
Posts: 76
Thanks: 0
Thanked 4 Times in 4 Posts
| |
| |
| | #4 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
Requirements: jQuery library Code: $.getJSON( "http://smart-ip.net/geoip-json?callback=?", function(data){
// traffic aus deutschland wird redirected, z.b. nach ...
if (data.countryCode == "DE") {
window.location = 'http://yourdomain.com/de/index.html';
} else {
// traffic aus anderen ländern wird redirected, z.b. nach ...
window.location = 'http://google.com';
} |
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| | #5 | |
| Active Warrior War Room Member Join Date: 2011
Posts: 76
Thanks: 0
Thanked 4 Times in 4 Posts
|
Michael71, thank you for the example! | |
| |
| | #6 |
| Web Developer War Room Member Join Date: 2012 Location: Vancouver, BC
Posts: 593
Thanks: 149
Thanked 162 Times in 133 Posts
|
It should be noted that this is more of a 'simple' solution. Bypassing this would be trivial for even the most basic of computer users (using a proxy, disabling JS in browser, etc). However, with that said their aren't really many effective solutions (Even with Netflix if you use an American proxy you get the full American show listing, which is the best!). |
| |
| |
| | #7 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
Yep, this is a simple and free solution. Ofcourse you could go with maxmind or similar... and mabye just route every proxy user to somewhere else |
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
|
| Bookmarks |
| Tags |
| files, geo, html, setting, targeting |
| |