Banning A Whole Country IP Range From My Website
Oct 28, 2008
I want to stop users from country X from accessing my website, I know I can ban people's IPs but I dont know if it is possible to ban certain geographical area and if so, I haven't got a clue about how to do it.
View 8 Replies
ADVERTISEMENT
Mar 8, 2007
I need to ban IP range and I inserted say ip 12.44.0.0 in the deny_hosts rules, this should ban range from 12.44 but strange is people from that range still be able to access my site, any idea what went wrong?
View 3 Replies
View Related
Oct 9, 2006
Does anyone know how to range ban IPs using IPsec.
I can enter IPs manually but unable to ban an entire RANGE of ips
i.e. For example 172.10.10.10 - 172.1.1.999
Anyone know?
View 4 Replies
View Related
Nov 2, 2009
why a client orders a dedicated server from Russia but then they inform us they have transferred the money from Hong Kong bank Telegraphic transfer, different person?
We really do our best to be reasonable but what is the logic behind that?
View 10 Replies
View Related
Nov 15, 2007
About a week ago I got logs from the server that looked like this:
unknown (200.87.116.210): 5112 Time(s)
unknown (65.111.177.212): 5005 Time(s)
unknown (bastion.fmg-kopernik.ru): 662 Time(s)
root (bastion.fmg-kopernik.ru): 657 Time(s)
I then turned on the brute force protection cPanel provides, and it went down considerably from there. I'm not concerned at all about it (since the passwords are strong), but I would like to know the best way to determine abusive users (of SSH), and the best way to ban them.
Assuming the server does not have APF installed, or any particular control panel...
View 14 Replies
View Related
Dec 20, 2007
Getting these emails, several a day telling me that the server is banning its own allocated IP addresses. Can someone explain what on earth it could possibly be doing to ban its own IP's?
From - Thu Dec 20 16:50:47 2007
X-Account-Key: account3
X-UIDL: GmailId116f88c2a1c060ca
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Delivered-To: myemail@gmail.com
Received: by 10.90.78.14 with SMTP id a14cs288558agb;
Thu, 20 Dec 2007 09:14:04 -0800 (PST)
Received: by 10.142.177.7 with SMTP id z7mr183490wfe.47.1198170843836;
Thu, 20 Dec 2007 09:14:03 -0800 (PST)
Return-Path: <root@host.domain.com.br>
Received: from server.domain.com.br (domain.com.br [xxx.xxx64.138])
by mx.google.com with ESMTP id m8si38592roe.1.2007.12.20.09.14.03;
Thu, 20 Dec 2007 09:14:03 -0800 (PST)
Received-SPF: pass (google.com: domain of root@server.domain.com.br designates xxx.xxx.64.138 as permitted sender) client-ip=xxx.xxx.64.138;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of root@server.domain.com.br designates xxx.xxx.64.138 as permitted sender) smtp.mail=root@server.domain.com.br
Received: from root by server.domain.com.br with local (Exim 4.68)
(envelope-from <root@server.domain.com.br>)
id 1J5OyA-0004us-63
for root@server.domain.com.br; Thu, 20 Dec 2007 15:13:39 -0200
To: root@server.domain.com.br
Subject: IP addresses banned on Thu Dec 20 15:13:39 BRST 2007
Message-Id: <E1J5OyA-0004us-63@server.domain.com.br>
From: root <root@server.domain.com.br>
Date: Thu, 20 Dec 2007 15:13:39 -0200
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server.domain.com.br
X-AntiAbuse: Original Domain - server.domain.com.br
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - server.domain.com.br
Banned the following ip addresses on Thu Dec 20 15:13:38 BRST 2007
xxx.xxx64.138 with 151 connections
I have centos 4 / cpanel installed with apf / bfd yet the deny host rules for apf does not show the server IP's listed as banned.
View 2 Replies
View Related
Jul 6, 2008
How can i ban Yahoo! Slurp and its IPs using .htacces?
View 3 Replies
View Related
Jan 19, 2007
ý'd want to ban some ip addresses and i tried use iptables. But it doesnt work so far.
what i did is:
root/sbin/ iptables -A INPUT -p tcp -s 193.93.236.0/22 -d any/0 -m state --state NEW -j DROP
as seen, i tried to ban an ip range from my box (coz of spam). But it looks that doesnt work.
What i want to do is to prevent wp spammers to post their disgraceful links to my database.
i am using centos.
View 13 Replies
View Related
Apr 28, 2009
my VPS provided didn't enable a lot of modules and that's why I can use a firewall(csf or apf) and dos deflate script
I need a simple script for it.
First,it has to call this:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
then there will be something like:
Number : IP address
20 1.2.3.4
40 1.2.3.5
80 1.2.3.6
and then the bash script has to bann IPs with more than 30 connections(In our case: 1.2.3.5 and 1.2.3.6) with this:
iptables -A INPUT -s IP_FOR_BLOCK -j DROP
View 14 Replies
View Related
Jun 23, 2008
I installed mod_security and the 403security rules on my VPS (Centos 4.1, Release version of WHM).
Several vBulletin files, including the ajax quick editor and some vbulletin.org add-ons are triggering this rule and banning members' IPs in CSF:
# Restrict witch content encodings we accept.
#
# TODO Most applications support only two encodings for request bodies
# because that is all browsers know how to produce. If you are using
# automated tools to talk to the application you may be using other
# content types and would want to change the list of supported encodings.
#
# Note though that ModSecurity parses only three content encodings:
# application/x-www-form-urlencoded, multipart/form-data request and
# text/xml. The protection provided for any other type of encoding is
# inferior.
#
# TODO There are many applications that are not using multipart/form-data
# encoding (typically only used for file uploads). This content type
# can be disabled if not used.
#
# NOTE We allow any content type to be specified with GET or HEAD
# because some tools incorrectly supply content type information
# even when the body is not present. There is a rule further in
# the file to prevent GET and HEAD requests to have bodies to we're
# safe in that respect.
#
# NOTE Use of WebDAV requires "text/xml" content type.
#
# NOTE Philippe Bourcier (pbourcier AT citali DOT com) reports
# applications running on the PocketPC and AvantGo platforms use
# non-standard content types:
#
# M-Business iAnywhere application/x-mal-client-data
# UltraLite iAnywhere application/octet-stream
#
SecRule REQUEST_METHOD "!^(?:get|head|propfind|options)$"
"chain, t:lowercase, deny,log,auditlog,status:501,msg:'Request content encoding is not allowed by policy',id:'960010',severity:'4'"
SecRule REQUEST_HEADERS:Content-Type "!(?:^(?:application/x-www-form-urlencoded$|multipart/form-data;)|text/xml)"
I don't know how to decipher this rule to know if just removing it is ok, or if it is serving an important purpose. During a couple hour period it was enabled, that rule only seemed to trigger false alarms.
The above was triggered with calls such as [uri "/forums/ajax.php?do=usersearch"] and [uri "/forums/newreply.php?do=postreply&t=11057"]
What I really don't understand is that I have an .htaccess in place to turn off mod_security for the /forums directory:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
I have also had this rule triggered today when someone tried to access : ...
View 0 Replies
View Related
Jan 19, 2008
I've been happily banning ip's using the output from
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
for over a year now, with iptables. However recently, after upgrading to apache 2.2, the connections in netstat get listed as ipv6. A row can look like this for example:
tcp6 0 0 ::ffff:12.123.123.123:80 ::ffff:12.123.12.:12382 ESTABLISHED-
(actual ip addresses changed)
As you can see, the remote ip address isn't complete, it's cut off, so the script used to sum up connections and insert into iptables isnt doing anything.
View 0 Replies
View Related
Nov 26, 2008
I've just finally got fed up with all the people from Israel trying to hack into my servers. Of course they're always auto-banned, but getting several attempts per day emailed to me it gets old...so I banned the entire country.
Anyone else ban entire countries from their servers?
View 12 Replies
View Related
Jun 11, 2009
Can an SSL certificate be issued to any tld. Does country matter etc?
View 2 Replies
View Related
Jun 30, 2008
im using apf firewall and wonder if someone could provide me a list of turkish ips.
View 13 Replies
View Related
Nov 2, 2008
Just joined sitepoint forums so Hi everybody
I am very new to web design and have been messing around making mock sites and would like to get some of them live so I can get experience with using host's and get some reviews on my basic designs.
I have just relocated to New Zealand and it seems pretty steep on pricing for hosting companies so can I use hosting companies outside of NZ.
What would be the disadvantages if any?
I am not after anything special like loads of bandwidth or storage.
View 11 Replies
View Related
Apr 14, 2007
I had a few sites hacked today. I'm using phpbb (all updates) and, apparently, the only thing they did was to drop the database and replace it with one featuring a single post "advertising" their hacker group. I tried bringing everything back on-line, but they would just attack again and take it down quickly... I'm thinking it's probably just some script kiddies.
They announce themselves as "turkish hackers". Browsing around for their message, I found they attacked quite a few sites. What I was thinking, to help preventing this from happening again, is to ban all visitors from Turkey (none of these sites has a need for them, as they're aimed at a local audience).
Can I do this simply by using "deny from .tr" in htaccess? Or are there any more steps to be taken?
View 6 Replies
View Related
Aug 9, 2007
What are the bad effects of hosting a website outside the country?
View 3 Replies
View Related
Oct 25, 2009
Are there hosters that do that?
Best would be European.
i know that i.e. Hetzner gives you PA Space with your own Netname ("netname:" field) (maybe also own Adress) but they dont allow to change the "country:" field, and it stays "DE"
I would like to have a block of 8/16/32 IPs with own "Netname:" field, and own "Country:" field (or as Countrycode "CN", "HK", "AG", "BS" or "KY")
Could Provide P.O. Boxes in all that countrys if needed.
The Server behind it does not really matter, location should be not Germany and not USA (cant comply with some Laws in this 2 Countrys) - something like 1Ghz CPU, 80Gb HDD, 512Mb Ram is enough - 100Mbit (or 10Mbit Burstable) with ~350Gb Traffic.
View 7 Replies
View Related
Jul 18, 2009
how this new feature works in csf with blocking by country code.
I'm trying to put a block on Indonesia.
View 5 Replies
View Related
Jul 6, 2009
Is it possible to buy an IP from a different datacenter location in the same country and use it on a server/vps. where can I buy IP's from?
or can I get an IP of for example UK and use it on a US server?
Will it show as a UK Server?
View 4 Replies
View Related
Dec 19, 2007
I've seen sites that use only 1 domain name, and when I ping it from one country the IP is different from when I ping it from another country.
View 4 Replies
View Related
Oct 21, 2007
I am in the process of setting up a VPN server for a client who lives in a Middle Eastern country.
He will be using the VPN for all his internet surfing, email access, etc. (So the VPN will be his internet gateway. His local ISP connection will only be used to make the VPN connection.)
The majority of his internet surfing through the VPN will be to US websites.
Where is the best place to locate the VPN server? I have two datacenters available to choose from: USA or UK
View 8 Replies
View Related
Oct 5, 2007
I have experianced a number of attacks all from a specific country.
I would like to completely block access to all users from that country.
I realize that this is not fool proof because people from that country could still use a proxy.
I also realize that people in that country that are not hackers would not be able to access my web site but for the time being I still want to put this in place.
I use Linux / Cpanel / Apache. I have iptables installed.
Is there any way I can block all access to people from the problem country?
View 4 Replies
View Related
Mar 5, 2007
setting up another website which will have hopefully both a uk and us audience. I am looking at going with godaddy as they offer a domain extension I want, which no uk service seems to offer. Is there any disadvantages to this, will it operate slower?
View 8 Replies
View Related
Jun 12, 2007
Let's say when i first joined the datacenter, i'm given some 16 IPs from 123.123.123.*.
Now that i need more IPs, and they have to give me IPs from 123.123.124.*, am i right to say i need a new switch?
Now is it possible that i link up the new switch together, so that both switch can pick up any available IPs from either range?
View 12 Replies
View Related
Jun 8, 2009
security and solve the problem of changing IPs
How can I restrict cpanel login or any login to a particular country?
where can I find iP range of countries?
View 5 Replies
View Related
Nov 3, 2008
I got a list of IPs from the country i want to block from blockacountry.com and i added them to my .htaccess as I have no access to PF or IP tables firewall.
I am concerned about the server load if I get too many requests from that country to access the webpage, I have been told of a better solution, blocking someone based on the browser language they use, for example for China that is "zh-CN" but I don't know how to implement this and I have not been able to find it through Google, help with this appreciated.
Second thing, anyone knows what happens when someone attempts to access a webpage from a blocked IP? Do they get a "Page not found" or "your IP is blacklisted" message?
If I block by browser language it would be good if the blocking message does not tell the user about this
(Notice that I am aware that blocking by browser language is not a perfect solution).
View 8 Replies
View Related
Feb 10, 2007
For a long time it was 1 Welsher in LA or Ashburn, but for the past few years every one is saying its Amsterdam.
any one willing to give insight into this, i am talking about sub 10$ bw in 100 meg commit levels
View 13 Replies
View Related
Sep 26, 2007
This might be a very broad question, but do they split up IP Address Groups for each region in countries? I know my country is quite small and all, but I was interested to know if IP addresses can be tracked for regions, more specifically in other countries.
View 0 Replies
View Related
Feb 5, 2007
I have a personal web site and am developing an online business that I hope will grow(of course) and am wondering if anyone could give me advice about using an overseas web host.
I am wondering if the extra distance bewteen customer and web host will cause a significant lagtime when they are using my website.
View 5 Replies
View Related
May 8, 2014
Apache version > i don't know (i am a godaddy user)
Apache platform > unix
I try to make a change to my current htaccess for now my url looks like> sitename.com/en/filename.ext..I want to get to have an address resembling this:
sitename.com/ca/​​en/filename.ext (in case the country is Canada and french language)
sitename.com/us/en/filename.ext (in case the country is United State and English language)
sitename.com/eu/en/filename.ext (in case the country is Europe and English language)
sitename.com/en/filename.ext (in case the country is not mentioned and English language)
View 1 Replies
View Related