how to block a specific country in your website?

 

Results 1 to 7 of 7
is there a way to do this? basically i want to block philippines in my ...
  1. #1
    ryanhackmachine's Avatar
    ryanhackmachine is offline Regular Member
    Join Date
    May 2010
    Location
    In front of my desktop pc
    Posts
    371
    Thanks
    83
    Thanked 209 Times in 69 Posts

    Default how to block a specific country in your website?

    is there a way to do this? basically i want to block philippines in my website




  2. #2
    Hunwarrior's Avatar
    Hunwarrior is offline Jr. VIP
    Join Date
    May 2010
    Posts
    995
    Thanks
    323
    Thanked 801 Times in 278 Posts

    Default Re: how to block a specific country in your website?

    i would put a geo redirection on index and redirect all traffic to site, and send phillipines to someone elses.

  3. #3
    ewper's Avatar
    ewper is offline Newbies
    Join Date
    Nov 2008
    Posts
    36
    Thanks
    15
    Thanked 8 Times in 4 Posts

    Default Re: how to block a specific country in your website?


  4. #4
    ryanhackmachine's Avatar
    ryanhackmachine is offline Regular Member
    Join Date
    May 2010
    Location
    In front of my desktop pc
    Posts
    371
    Thanks
    83
    Thanked 209 Times in 69 Posts

    Default Re: how to block a specific country in your website?

    Quote Originally Posted by Hunwarrior View Post
    i would put a geo redirection on index and redirect all traffic to site, and send phillipines to someone elses.
    can you guide me thru that? i dont know how

  5. #5
    likewhoa is offline Registered Member
    Join Date
    Nov 2010
    Location
    Brooklyn, NY
    Posts
    62
    Thanks
    42
    Thanked 6 Times in 6 Posts

    Default Re: how to block a specific country in your website?

    If you're using an httpd like apache that uses .htaccess you can then deny ip blocks.

    i.e Block everyone from ALAND ISLANDS (smallest block i could find)

    Code:
    
    order allow,deny
    deny from 217.29.224.0/20
    allow from all
    Tip countryipblocks.net/country-blocks/select-formats/

    has country codes

  6. #6
    fatboy's Avatar
    fatboy is offline Jr. VIP
    Join Date
    Aug 2008
    Location
    Behind you.......panic
    Posts
    1,302
    Thanks
    665
    Thanked 2,780 Times in 727 Posts

    Default Re: how to block a specific country in your website?

    Go to
    Code:
    http://www.blockacountry.com
    and select the country - it will then give you the lines to put into your htaccess file.

    The only thing you really need to change is the line:
    Code:
    ErrorDocument 403 http://www.proxynetwork.ws/blocked.html
    Change the URL to a page on your site which shows content you want to show to people who are coming from your blocked country. If you don't want to show a secific error, just delete that line.

    Hope that helps
    FB
    Available to hire for server setups, hosting setups, OpenVPN setups and trouble shooting

  7. The Following User Says Thank You to fatboy For This Useful Post:

    cooldude7 (06-04-2011)

  8. #7
    namestrands is offline Newbies
    Join Date
    Sep 2010
    Posts
    21
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default Re: how to block a specific country in your website?

    are you on an apache server with php?

  9. #8
    faster's Avatar
    faster is offline Supreme Member
    Join Date
    Jan 2011
    Posts
    1,470
    Thanks
    323
    Thanked 148 Times in 31 Posts

    Default Re: how to block a specific country in your website?

    Yeah you can block ever gything on your site. Write the code which you want to block and put it your website designer software.


Similar Threads

  1. Promoting Your website on MySpace
    By Diamond Damien in forum Black Hat SEO
    Replies: 17
    Last Post: 07-14-2013, 10:05 AM
  2. Replies: 4
    Last Post: 12-12-2010, 11:18 PM
  3. Web 2.0/blog country specific
    By billabong in forum Blogging
    Replies: 1
    Last Post: 03-07-2009, 09:29 AM
  4. Traffic to your website - quick method
    By mightykudgel in forum Making Money
    Replies: 11
    Last Post: 01-19-2009, 05:29 PM

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
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108