vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Geotargeting by GeoIP integration (https://vborg.vbsupport.ru/showthread.php?t=107036)

Thomas P 05-27-2008 06:36 AM

Is it possible to block certain IPs based on their geolocation using this hack?

imported_silkroad 08-29-2009 09:16 AM

Quote:

Originally Posted by Psionic Vision (Post 962662)
Nevermind, it's based on DNS resolver... And DNS queries may cause page load delays, although not necessarily server load.
Bleh. Not interesting.

No, this is wrong.

This program is based on IP address which comes "without network load cost" from the HTTP $_SERVER['REMOTE_ADDR'] global PHP var.

Basically, the server simply takes the REMOTE_ADDR (IP address) and queries a file on the same server (can download file for free) and returns country information.

This is a great feature for many forums that would like to display different content to the user based on country.

imported_silkroad 08-29-2009 09:18 AM

Quote:

Originally Posted by Thomas P (Post 1532639)
Is it possible to block certain IPs based on their geolocation using this hack?

Yes, you can easily do this, but you need to write the extra code yourself.

imported_silkroad 08-29-2009 09:19 AM

Quote:

Originally Posted by Tom Freeman (Post 1390217)
Sorry if this is a dumb question, but does this mod also allow me to geolocate forums. Therefore only showing certain forums to certain users based on their geographic location?

Thanks,
Tom

Yes, it does. Basically, with a bit of writing code, you can do "just about anything" based on Country (or even City).

For many users, it might be easier just to install this PHP extension (since this mod is not supported anymore):

http://us3.php.net/manual/en/book.geoip.php

imported_silkroad 08-31-2009 06:48 AM

Ah, we found it was easier to install Apache2 mod_geoip. A plugin for this is not really necessary, FYI. So, I recommend mod_geoip for this because it is easy to install and runs great.

imported_silkroad 09-08-2009 07:00 AM

We have integrated GeoIP into vBulletin very easily using mod_geoip.

Details on upgrading mod_geoip here

What we have done so far, is use mod_geoip for geo-targetting.

In addition, we made a simple change to the navbar template to say:

Welcome from Country_Name, User_Name

instead of the standard, Welcome, User_Name

Details on vB navbar feature here.

clubvr4 08-17-2010 09:36 AM

Has anyone ported this to vb4 yet?

Dave234 06-11-2012 05:38 PM

Does this work with vbulletin 4.1.11? Does it work with Amazon Associates?


All times are GMT. The time now is 04:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01799 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete