Best Blackhat Forum

Full Version: [REQ]Geoip redirect based on City
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey there!
need a litlle help with geoip redir code to redirect certain cities to diff links, can be in js or php
i was testing this:
<script src="//j.maxmind.com/app/geoip.js" charset="ISO-8859-1" type="text/javascript"></script>
<script>
if (city == 'city1') {
window['location'] = 'http://google.com';
};
if (city == 'city2') {
window['location'] = 'http://google.com';
};
if (city == 'city3') {
window['location'] = 'http://google.com';
};
</script>

but this is only for registered users (401 error - need domain authorization)
I've downloaded their city database but i have no idea how to connect it to the script to make it work
Reference URL's