Questions tagged [ip-blocking]
113 questions
2
votes
2 answers
Block bots by their Java referrer or User-Agent string?
I have been getting a lot of web hits in my logs that crawl most top level pages of my site and show a referrer as a Java version.
I see different variants of the Java versions in the referrer, i.e. Java/1.6.0_04, Java/1.4.1_04, Java/1.7.0_25,…

markratledge
- 519
- 5
- 13
- 26
2
votes
1 answer
Nginx "allow 127.0.0.1" in location block letting in all users
Problem
I have the following block in my nginx config.
The idea is to let the server access the file but noone else. If anyone else accesses i it should throw a 403. If I comment out the allow line this is what happens. However if I leave it in…

split_account
- 169
- 4
- 11
2
votes
2 answers
If I block users with a blank IP address, will that affect innocent, non-technical users?
I run a website with an anonymous commenting feature. Users can flag each other for abuse; flags are tied to an IP address (grabbed via PHP from $_SERVER['REMOTE_ADDR']).
I've noticed that 99% of the flags are for a blank IP.
I'm thinking of putting…

andrewtweber
- 449
- 1
- 10
- 18
2
votes
2 answers
Blocking all RIPE Addresses in Server 2008?
Our datacenter has recommended we block all RIPE IP Addresses on one of our machines. It is constantly being DDoS Attacked everytime the null routes are lifted, so I am not sure how this would help, but am more than willing to try anything now.
I…

Aidan Knight
- 650
- 3
- 11
- 19
2
votes
3 answers
How to create a group policy to block facebook or any website in windows server 2008 r2 domain
How do I create a Group Policy that will prevent my users from accessing specific web-sites? I am at the 2008r2 functional level.

Ahmad
- 21
- 1
- 1
- 2
2
votes
4 answers
Block IPs that try to exploit common webapp vulnerabilities
Is there an application that goes through the nginx logs and blocks IPs that made requests for common webapp vulnerabilities?
I have an nginx web server that serves only static content. I routinely get requests for GET /db/websql/main.php or GET…

gioele
- 194
- 2
- 10
2
votes
4 answers
Blocking attacker's IPs: What options do I have?
A website of mine is being attacked by some IPs. I don't even know if it was a ddos yet, I only know that it has been filling my application's logs for longer than a day, and then the server crashed due to mysql memory usage I guess (I received an…

HappyDeveloper
- 325
- 1
- 3
- 7
1
vote
0 answers
Hosting a virtual machine in Russia
One of the web-hosted projects I work on is being blocked in Russia (ostensibly due to Russia's attempt at blocking a certain messaging service.) The service must be accessible by ephemeral/mobile clients via SSH and HTTP.
I'd like to set up edge…

Tom
- 3,213
- 2
- 20
- 19
1
vote
1 answer
Block all RDP connection except one IP
I want to block all connection to Hyper-V machine except from one IP.
I can explain my scenario.
User can access RDP when they are in our company network.We are using 128.x.x.x range internally and have one static public ip 125.x.x.x.x.
Please guide…

Nuhus
- 21
- 1
- 3
1
vote
1 answer
Block IP Address range on IIS 7.5
I have a Windows 2008R2 Server running IIS 7.5. It is getting bombarded with attempted hacks from similar IPs.
How would I block the IP range with something like 51.255.65.*?
Below is the UI presented to me when adding a Deny restriction

Paul Hale
- 113
- 2
- 8
1
vote
2 answers
Nginx reverse proxy gets blocked
We run a wordpress blog in a subdirectory from our main domain.
domain.com => Server A (Nginx)
domain.com/blog => Server B (Apache)
The blog itself lies on a different (cheap shared hosting) server and gets reverse proxied.
Nginx => Apache
As…

David Mair Spiess
- 111
- 3
1
vote
4 answers
CentOS 7 - Blocking certain countries (Phillipines,Russia,China)
I run a site that only deals with customers in certain locations.
Lately my load balancer is being hammered by requests from Phillipines/Russia/China. Mail bots, brute force attacks etc.
Is there a simple way of blocking these three countries from…

rosey85uk
- 81
- 5
- 11
1
vote
1 answer
How to configure an nginx VHost to hang up on the client in the rudest possible way?
I have a, let's call it, "legacy" VHost configured on an nginx server. It used to be a full site, but it has since been decommissioned and all the content removed. The server block now looks something like this:
server {
listen 80;
…

smitelli
- 1,214
- 1
- 10
- 16
1
vote
2 answers
dnsmasq adblocking only working server-side
I'm trying to create a server-side adblocking mechanism through dnsmasq, but I only get results on the server itself, not the computers attached to my local network.
First of all, my router is the default DNS server, so I have to setup all my…

Jeez
- 13
- 2
1
vote
0 answers
Dynamic IP Blocking on FORTIGATE 200A Firewall
I have FORTIGATE 200A firewall protecting a IIS Server running a ASP.NET website (windows server 2008 and IIS7)
I'm not familiar with Fortigate configurations and options.
I recently had "attacks" from certain IPs that generate a lot of errors by…

RuSh
- 145
- 1
- 3
- 8