Results 1 to 16 of 16
  1. #1
    Join Date
    Jul 2002

    Help! Need to block china from server

    these chinese spammer/hackers are driving me NUTS! I've tried all kinds of htaccess options to block china, and none have worked. Here is a sampling of the offending ip addresses. Maybe they are too new to be in the existing lists or something. Can someone help me out?

    that doesn't work unfortunately it seems like ... here are some of the offending ip addresses: any other ideas?

  2. #2
    Join Date
    Jul 2002
    it is ShenZhen Sunrise Technology Co.,Ltd apparently

  3. #3
    Join Date
    Apr 2013
    Middletown, USA
    Try to block it in your firewall if you have access to change setting - Managed and Unmanaged Virtual & Dedicated Server|XenServer Windows & Linux VPS
    - New York City|Miami|Singapore|Hong Kong|UK|Netherlands|Germany|France|Canada​|Lithuania|Dallas
    - VPS and Dedicated Servers in 11 Global location 100% Pure SSD Reseller & Shared Host
    cPanel NOC| Microsoft SPLA| PayPal, Credit Card, Bitcoin, Skrill, Payza, WebMoney, PerfectMoney Accepted!

  4. #4
    Join Date
    Jul 2002
    i don't - i'm on rackspace cloud sites

  5. #5
    Join Date
    Dec 2009
    You can try to get the CN ip address list in cidr format and block it using htaccess.

  6. #6
    Join Date
    Nov 2002
    Portland, Oregon
    I suppose you could stick the bulk of them into the .htaccess if you have no other way to get at them.

    If you want to block 202.46.ALL.ALL, the CIDR would be and you'd just add that range to the existing list. I'm not sure which .htaccess methods you've attempted so far but this is one you can try if you need to.
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  7. #7
    Join Date
    Sep 2004
    You can do this with CSF

    Look for CC_DENY in the conf file.
    :: Shrapnel Network LLC ::
    :: Authorized Ventrilo and Teamspeak Hosting ::
    :: : ::

  8. #8
    Join Date
    Dec 2001
    why not use mod geoip or simple php-geoip, get maxmind geoip database and block the whole of china ?
    Experienced OpenStack Admin For Hire
    regular as admin0 on freenode IRC on #openstack and #openstack-ansible channels

  9. #9
    Join Date
    Aug 2003
    Phoenix AZ
    If you do a block of it should fix the problem since it seems to only be segregated to that /16 block. Blocking the whole /16 might be excessive. But if the traffic is useless to you anyway, it might save a headache

  10. #10
    Join Date
    May 2013
    If you're being specifically targeted by that IP range, they'll likely just pop up under a new IP after you block the original range. Addressing the vulnerabilities they're seeking to exploit would be better. If it's a client site and you can't make the appropriate upgrades, it'd definitely be worth your time implementing a robust set of mod_security rules.
    ▄▀▄ Brian Harrison, Lead Engineer - Reprise Hosting (AS62838)
    ▄▀▄ Deals on cheap dedicated server hosting. IPMI included! Unmetered bandwidth.
    ▄▀▄ Website migration, 24/7/365 support, basic server setup, 15 day money back.
    ▄▀▄ Looking for DEALS on self-managed cheap VPS hosting? Visit

  11. #11
    Join Date
    Feb 2014
    It is much preferable to block the offending IPs in your firewall or even better in your provider's firewall so requests from them never even reach your application.

    Why not talk to rackspace and see if they can block the IP range towards your resource?

  12. #12
    If you are using cloudlfare/incapsula you can also block specific countries from the panel

  13. #13
    Join Date
    Jul 2004
    New York, NY
    Those are Baidu crawlers ... what exactly are they doing to your site
    ServGrid - - Affordable and Reliable SSD Cloud Solutions
    Premium 10G Network, 2(N+1) Powerplant and SSD Performance
    Web, Reseller, KVM VPS, Storage and Private Cloud Hosting
    Click here to see our SSD Benchmarks!

  14. #14

  15. #15
    Join Date
    Jun 2011
    Toronto, Canada

    I suggest using Open Source firewalls in your cloud and pass through all the traffic through that firewall,

    There are solutions like threatstop which allow you to block the traffic based on source
    Cirrus Tech. Ltd. - A Canadian Cloud hosting Company, Since 1999

  16. #16
    Join Date
    Apr 2013
    Outskirts of Milky Way
    Since it is not possible to use CSF or any other firewall on CloudSites, you're pretty limited in what you can do.

    One very effective way to block entire countries is with CloudFlare. You can enter a country (CN, RU, VN, etc) in the threat page and visitors the entire country will be presented with a CAPTCHA page. Those spammers are almost certainly bots so they will go away.

Similar Threads

  1. Urgent: Need a quick way to BLOCK all China (yes i have csf)
    By GeorgRauh in forum Hosting Security and Technology
    Replies: 15
    Last Post: 04-09-2013, 01:03 PM
  2. Yahoo Domains - collateral block in China
    By jimrothstein in forum Domain Names
    Replies: 7
    Last Post: 02-20-2006, 10:48 PM
  3. WHM/Cpanel Server - Want to block china/japan/hongkong
    By dalecom in forum Dedicated Server
    Replies: 16
    Last Post: 11-09-2005, 07:39 AM
  4. Block all of China?
    By Mark L in forum Running a Web Hosting Business
    Replies: 5
    Last Post: 05-27-2005, 01:17 PM

Posting Permissions

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