Blocking IP Addresses In .htaccess For Whole Countries
Jul 5, 2007
I'm tired of india people hitting our website (because it is a top hit on google and the others) then calling the next day to bug me to use them for outsourcing.
I am going to block some IP blocks in my .htaccess file to prevent this.
I can see from my statcounter logs that the hits from india so far have come from 59.* 102.* and 203.* (as in 59.###.###.###).
Is there a place I can lookup to find out if I block those, will I will also be blocking some north america IPs (since I'm using such a broad wildcard)?
All our paying business comes from north america.
my htaccess file will look like this:
Code:
# prevents a directory listing when typing in the directory path in the browser
Options -Indexes
#
# My effort to keep india sites from seeing our website
order allow,deny
deny from 203.
deny from 59.
allow from all
View 7 Replies
ADVERTISEMENT
Jul 23, 2009
I have come across an issue where traffic from India is hurting my business. What I have is a number of job boards. Realistically, the only issue I am having is with IT and Engineering positions being applied for heavily by people in India. Since my customer base is all in the USA, I would like to just block India.
While I know this is easy with Apache using a .htaccess file, I am using IIS on server 2007. Does anyone have any idea on how to do this easily with the large number of IPs that India uses?
View 6 Replies
View Related
May 24, 2007
APF firewall is blocking IP's from the allowed range
I have this inserted in /etc/apf/allowed_hosts.rules and restarted APF of course
67.79.221.0/24
70.112.124.0/24
70.113.54.0/24
It still blocked this IP for example, 67.79.221.154
Anyone know why?
View 4 Replies
View Related
Jan 13, 2007
I'm trying to deny from the block of "192.168.1" without much success. Could someone around here divulge the error of my ways?
Here is the exact code I have in my .htaccess file:
Code:
AuthName "Test"
AuthType Basic
<Limit GET POST>
order deny,allow
deny from all
allow from 192.168.1.
</Limit>
View 13 Replies
View Related
May 4, 2008
I've been carrying some weird hours lately, so I'm able to see activity on my sites that I normally don't see.
Certain IPs are trying to diddle their things into my server and need the boot. It's not consistent (ie not happening every 5, 10 mins)... it's periodically throughout the months. I'll see an IP I blocked 2 months ago just randomly show up at 4:30am and try accessing the same files it was probing during it's last visit. Assuming this is just some sort of bot, can I block it permanently?
I know APF has a collection system that purges an IP list to keep it from bloating, and I had PSM do some hardening so I'm not entirely sure about the workings of APF firewall. So far my IP blocks are blank (which is a good sign!), but I'd like to add some nuisances to it, to keep their crap from appearing in my error logs anymore as "Denied by Server Configuration"
My question is: Can I block people at server level permanently? I do not want their IP being taken out with the purge list that comes by every so often.
View 4 Replies
View Related
Apr 23, 2015
I am having a problem with blocking bots using .htaccess. I think I tried all possible syntax variants, yet all the bots that I am blocking get HTTP 200 response instead of 403 (I can verify it using access log).
I am using Apache 2.4 running on Ubuntu 14.04.2 with Plesk 12.0.18.
My AllowOverride is set to allow the use of .htaccess files, so .htaccess file gets loaded: when I make an error in .htaccess sysntax I can see the error in the error log and the webpages don't load. Besides, I have some "Deny from [IP address]" directives in the .htaccess and I see that these IPs get HTTP 403 response when access my site.
I spent hours trying different variants of .htaccess syntax (see below) and neither seems to work...
variant 0:
SetEnvIfNoCase User-Agent LivelapBot bad_bot
SetEnvIfNoCase User-Agent TurnitinBot bad_bot
Order allow,deny
Allow from all
Deny from env=bad_bot
[Code] ....
View 7 Replies
View Related
Jul 16, 2007
I'm trying to figure out a method to stop some of the email spam that we get, and I have something figured out, but I need help on implementing it.
Basically, we get a lot of spam emails from addresses claiming to be from our domain (EX: From: someguy@mysite.com). The email is actually not from our domain, nor does the address actually exist, but the From address is being forged to look like it is our domain.
Basically to fix this, i want to block all email where the From address is claiming to be from our domain, with a nonexistent email address. I'm pretty sure that this is configurable in Exim, but I haven't found any tutorial on it, and I'm not familiar enough with Exim to do it very easily. Anyway if anyone knows of a tutorial or how this could be accomplished, please let me know.
Just to Add:
The reason that these emails are a problem is that the spam software we are running recognizes these emails as being from our domain which it trusts, so they pass most spam filters.
View 0 Replies
View Related
Sep 22, 2008
I keep on hearing people say that they won't use hosting from a particular country.
View 14 Replies
View Related
Jun 1, 2007
I was wondering we use ConfigServer Security & Firewall for our firewall and was wondering how we can go about blocking certain countries from being able to access our servers, mainly Korea, China and Russia?
I found this site: ....
View 2 Replies
View Related
Feb 1, 2009
Recently I have been putting thought into creating an online storefront for my web hosting business. I stopped advertising online and even having a website for a good 8 months and built my business on local companies in my area.
I just read a thread regarding an Indonesian who says he can't get hosting because his country is black listed. I need information on other countries that web hosts block and don't allow orders from. I want to provide to the middle east, I am writing a great T.O.S. and A.U.P. but I am also looking for some advice on how to prevent fraud from happening to me.
My ideas are a phone call to the potential customer, and a faxed copy of there photo ID.
So could you please list some countries I should be weary about dealing with and some ways to prevent fraud.
View 4 Replies
View Related
Jul 1, 2008
my vps blocked countries I don't know why?
I have 2 vps on same server and I don't have Firewall on my vps?
When I checked the status for my vps:
[url]
216.245.213.133
and 216.245.213.151
you will find alot of country not working my vps:
Montreal, QC, Canada
Zagreb, Croatia
London, UK
Canyon Country, CA, US
Pomona, CA, US
Frankfurt, Germany
Houston, TX, US
Kiev, Ukraine
Http error:Http_client.Bad_message("Unknown reason (e.g. unexpected eof, timeout)")
not working from some countries?
When I talked to the Support for my vps the said:
Abdulla,
We cannot really control if some countries can load the VPS or not, it is indeed up. We can try a reboot though, give me just a moment.
View 14 Replies
View Related
Aug 7, 2008
This is sort of the opposite of "how can I ban _____ country".
I think it would be easier to ALLOW countries selectively, and deny any contact from anywhere else.
Is something like this feasible without using an offsite script?
I realize this would not have any effect on those using proxies or offshore ISPs.
View 3 Replies
View Related
May 23, 2007
I have a webpage and currently hosted in the Philippines
It can be accessed by countries such as Malaysia, Thailand and the Philippines
However Singapore is having a problem accessing it. We tried different accounts, different ISPs, even on Cafes, Laptops, wi-fi but cannot access it
It says:
Standard message:
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings
Should this be a webhosting problem?
View 9 Replies
View Related
Apr 27, 2008
what CCtlds/GenTLDs do you know of that offer Zonefiles? I know com/net/org/info/biz, and I know that f.ex Germany/UK/Sweden doesnt offer any - but what else? Perhaps there is a list/directory somewhere?
View 1 Replies
View Related
Sep 17, 2008
Is web hosting in other countries a good choice if you need more bandwidth?
My german is not very good but for 23 euros a YEAR you get 12 GB space and unlimited traffic. Is that what it really says? Good deal?
www(dot)all-inclusive-webspace(dot)de
Would hosting in japan or korea or some really well connected country make your web hosting dollars go further if you need bandwidth?
View 4 Replies
View Related
Oct 13, 2007
I am using vps
I am receving calls from some countries or areas when they say they can not access my site ( site can not be found)
I called my provider and they say every thing is alright from their site
and from my side too but some areas in other countries like right now I received a call from canada they can not access my site my provider wants me to send Tracert
I can ask my friends to send that but not every user why this happanes and what tools are available to check and see if my site is alright from all areas or counties?
View 11 Replies
View Related
Jun 4, 2009
This is not strictly a technical issue with our server as such, but this subforum still seemed most relevant. If not, please move the thread to a better suited one.
Bizarre problem: in the last 2-3 days, visitors from certain countries (France, Holland, Serbia, Slovenia, Macedonia, Montenegro) are having difficulties in reaching our website hosted on cari.net. However, other countries (USA, UK, Germany, Russia) don't seem to have this problem at all. The server itself is a-OK.
The website hosts an IPB forum. The problem is that every so often (very often), upon clicking on a link, the browser hangs on "connecting", and often times out and returns a Bad Request message. Sometimes, when a clicked link that's waiting is refreshed, it immediately loads the page up quickly, as if nothing is wrong.
We cannot call our hosting company, as it's really nothing to do with them, the server works perfectly, it's just that traffic from certain countries has difficulties to get through a certain level3.net node in the USA (that is where tracert usually breaks down, or gets through after several attemtps).
View 2 Replies
View Related
Nov 18, 2007
Which one do you prefer? For Asean countries only
View 14 Replies
View Related
Apr 5, 2007
I've had it with EV1. On any given day we get 30-50 BFD attacks from their servers. That doesn't include the dozens of other types of attempts per day our IPS/IDS catch. We've also traced back client servers that were hacked directly via EV1 servers.
It's obvious that EV1 does little or nothing to stop these issues. We spoke to the FBI about these issues and their comments lead me to believe that EV1 is one of the major sources of these issues and that EV1 has shown little or no effort to curb the problem or cooperate in stopping the issue.
We have elected to now block all all EV1 IPS.
Drastic measures, not really. If they won't take care of their own problems I no longer want them dumped at my door step. I think other hosts might want to think about this.
View 14 Replies
View Related
Apr 28, 2007
At the moment it will block people who login with the wrong username/password 5 times. it also blocks people if they do the wrong email settings.
Is there a way to turn the pop3/email blocking off?
View 3 Replies
View Related
Dec 3, 2006
I am hitting a limit on number of POP signons per hour imposed by my host. I host maybe 10 domains on this account and have 4 or 5 email addresses to monitor for each domain. If I check once every 15 minutes I run up against a limit on the number of POP3 signons permitted by my ip. Add this to having multiple mail clients behind a NAT router and I am beginning to have real problems.
Does anyone else have this issue? Is my only workaround to forward all email to a single account or install a local mail server? Does 100 POP signons an hour from a single IP sound like a lot to anyone? Any advice?
View 6 Replies
View Related
Jul 19, 2008
Let's say you want to protect againts hacking,and using method with simply blocking loading url.So let's say someone hacked your index.html and changed links to lead to his domain.com.Is it possible to block what would be loaded on site ?(to prevent possible future hacking intrusions)
View 6 Replies
View Related
Nov 28, 2008
I have 2 server one is Linux server+Cpanel+CSF firewall where my site is running and one is windows server where my exchange mail server is running .Now thing is that when anyone send mail through my web site (after filling contact form) to me it doesn't come to my email id but when i stop my firewall and then i check contact form and fill it the mail goes to my mail id.
I have php script with SMTP authentication.
which port is blocked in my firewall and after disabling firewall it work.how can i check when firewall is on that time why mails are not coming in my email id that time which port is blocked by firewall.
Allow Port in firewall:-- 25,80,20,21,465,443,110,143
View 10 Replies
View Related
Jul 5, 2007
seems one of my sites has been added to some mega "toplist" site thats bringing in fake traffic to my site which is basically like a DOS attack - over 1000 connections.
coming from
[url]
[url]
[url]
linking to a php file in one of my accounts which has since been removed. however still getting a heck of a lot of hits, they probably all see 404 messages which still causes load on my server.
any suggestions how to fix this? the traffic is referred from above urls but hundreds of ip addresses. is there anyway to blacklist the referrer so people are just blocked, period?
View 6 Replies
View Related
Oct 6, 2007
Running freebsd with pf, and was wondering if there's anything like www.fixingtheweb.info for pf instead of IP tables? Otherwise it'll be a long day
View 1 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
Nov 7, 2007
I have my server set up with the smtp daemon running on port 125, and assp listening on ports 25 and 26, and forwarding to port 125 if the mail passes. This setup has been working for months and months. Already today I've received several emails.
I just attempted to send an email, however, and thunderbird could not connect to port 26. (I use an alternate port because my ISP blocks port 25 except to their mail servers)
So I thought that assp had stopped running. Attempted to go to myip:55555, but the page would not load. Now I really thought assp was broken. SSH'd into server and was able to telnet to localhost, port 26 without an issue. Was also able to lynx [url] without an issue.
Since I'm able to log in to all of these weird ports via SSH but not from my local computer, I'm apt to think that they are blocking the ports (for some reason).
Is there any way I can test this theory? Nothing has changed on my side firewall-wise, and the poor girl at the ISP company didn't even know what a port was. I would like to be 100% sure before I give them another call demanding to speak to someone higher up...
View 5 Replies
View Related
Feb 10, 2007
how to ban our blocking IP Location in my server like country range?
and how can i know the IP's country range?
View 5 Replies
View Related