Results 1 to 4 of 4

Thread: Redirect unwanted visitor from wordpress blog

  1. #1
    Zean is offline Cutest Net Builder
    Join Date
    Sep 2009
    Posts
    42
    Thanks
    3
    Thanked 1 Time in 1 Post

    Redirect unwanted visitor from wordpress blog

    Hi netbuilders,
    i usually use Geolite Country from Maxmind.com to redirect bad traffic, i use it to my webproxy

    So, how to use it on wordpress script, where i have to put the redirect code ?
    and there's a wp-plugin for this ?
    i want redirect all unwanted traffic come to my home page, post, page, etc

    Need your suggestion
    >>> Rapidleecher <<<

  2. #2
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Hey,

    I found this plugin on the wordpress site : iQ Block Country

    It's set to just deliver a a 403 Forbidden message to blocked countries, but if you want it to redirect them else where just edit the plugin's php file here :
    PHP Code:
            if (is_array $badcountries ) && in_array $country$badcountries )) {
                
    header 'HTTP/1.1 403 Forbidden' ); 
    and change the header to
    PHP Code:
    header('Location: http://example.com'); 

  3. Thanked by:

    Zean (22 April, 2010)

  4. #3
    Sami4u's Avatar
    Sami4u is offline Butterflies Forever
    Join Date
    Sep 2009
    Location
    USA
    Posts
    1,407
    Thanks
    670
    Thanked 292 Times in 220 Posts
    Hi,

    Is this legal with google ads? If so I'll send a few countries to some of my slower sites from time to time

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  5. #4
    Zean is offline Cutest Net Builder
    Join Date
    Sep 2009
    Posts
    42
    Thanks
    3
    Thanked 1 Time in 1 Post
    @ dtkguy

    i got it, thanks for your help, always get a great answer from you ...
    >>> Rapidleecher <<<

Similar Threads

  1. webproxy allow visitor from any country
    By sicute in forum Web Proxies
    Replies: 0
    Last Post: 23 June, 2010, 05:52 AM
  2. Give me your unwanted traffic!
    By Kovich in forum Web Proxies
    Replies: 9
    Last Post: 14 January, 2010, 20:30 PM
  3. Replies: 4
    Last Post: 22 December, 2009, 23:35 PM
  4. [WTS] Hoover Wordpress Blog (Unquie Wordpress Theme)
    By Marcell Purham in forum Themes
    Replies: 0
    Last Post: 15 December, 2009, 20:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •