Questions tagged [deny]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
4k views

IIS 7 - Enabling deny url sequences with backslash

I've been trying to restrict backslashes \ in URL's via the Request filtering tool in IIS 7 by using: <configuration> <system.webServer> <security> <...
Duane's user avatar
  • 131
5 votes
2 answers
11k views

Blocking a network device from communicating with another device on the LAN

I have been working with the firewall/router distribution Pfsense for a while now and I have been trying to figure out how to "isolate" a server on my LAN from other computers on my LAN by using deny/...
user99545's user avatar
  • 273
2 votes
2 answers
3k views

apache2: Require valid-user AND allow all

I want to allow basic authentication, but not require it. All visitors -authenticated or not- should be able to acces a page (script) where the script can add special features for valid users. So ...
Roland684's user avatar
5 votes
2 answers
2k views

Denying folder in Nginx causing PHP-FPM to not take precedence

The title says it all, but I have a very interesting problem that I am quite confused on. Basically, I have a simple WordPress installation, and I wish to deny a folder (along with all files in the ...
Taylor Jasko's user avatar
1 vote
1 answer
348 views

Simple query about the apache Include directive

I understand the principle of including external files into the httpd.conf using the Include directive, but I just want to double-check that I've understood how it works. On our server, we already ...
Owen Blacker's user avatar
0 votes
2 answers
100 views

I need help w/iptable rules

Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere The above 'ACCEPT'-line is quiet confusing to me. Doesn'...
Robert Frost's user avatar
3 votes
1 answer
1k views

Deny all gets overridden by another location block

location /_private { deny all; } location ~ \.php$ { # Workaround PHP vulnerability: # http://forum.nginx.org/read.php?2,88845,page=3 try_files $uri =404; include /etc/nginx/...
user avatar
0 votes
3 answers
460 views

Inline includes for httpd.conf?

Let's say I have a file list_of_naughty_ip_blocks.conf. Can I use the include directive to achieve the equivalent of line 8 below in my httpd.conf? If so, what is the proper syntax? Anything to note ...
Ferdinand.Bardamu's user avatar
1 vote
1 answer
1k views

deny all by ip .htaccess

I've been attempting to restrict access to an internet connected apache instance. My router has a port forward to the machine that is running apache. Don't know if this makes a difference. Anyway I ...
Jason's user avatar
  • 361
0 votes
1 answer
1k views

Completely random 403 errors despite explicit Allow from all

I do not have physical access to the server and do not have access to the logs. Some files are generating 403 errors despite me putting an .htaccess with an: Order Deny,Allow Allow from all I even ...
Rolando Cruz's user avatar
0 votes
1 answer
847 views

Deny all except a range of IP'S IIS 7.5 problem

I want to set up a Deny all rule for a specific range of IPS, so I wrote the range, lets say 76.200.0.0 and its mask 255.255.0.0. The problem is that as my personal server is on a LAN, IIS takes the ...
Msam85's user avatar
  • 113
6 votes
4 answers
22k views

Apache on Localhost to block incoming connections outside localhost

How can I make it that my local Apache installation works only as http://localhost/ and never from outside like using the IP of my machine when connected to a network please?
Francisc's user avatar
  • 153
1 vote
2 answers
2k views

Allow only certain files to be exposed to the web on Lighttpd?

Just installed it on my linux desktop, and I only want 1 or 2 files accessible to the outside world. Everything else should only be accessibly via http://localhost/ for various privacy/security ...
darkAsPitch's user avatar
  • 1,941
10 votes
1 answer
31k views

How to block IP addresses in HAProxy?

Is there something like Apache "deny from ip" in haproxy?
Marcin's user avatar
  • 623
4 votes
3 answers
11k views

NGINX deny IP wildcard?

I currently deny IP addresses like this in the nginx.conf file: deny 42.22.11.531; But how would I deny deny 42.22.*.*; <---- this obviously doesnt work, what is the correct syntax for nginx? ...
Dennis's user avatar
  • 41
3 votes
5 answers
31k views

How do I deny a user-based Group Policy for a specific computer?

So we have a GPO setup to redirect "My Documents" to a server location for all users in the domain (it's linked to the root "Users" OU). This works just fine, but we have 2 special workstations that ...
Matthew Flook's user avatar
0 votes
1 answer
2k views

How do I block host name instead of just IP?

I was wanting to block a list of specific hosts, specifically so my server has no access to them at all. I tried using host2ip and entering the result into IP tables , but the IPs don't seem to lead ...
user avatar
6 votes
4 answers
84k views

Apache2: How do I restrict access to a directory, but allow access to one file within it?

I've inherited a poorly designed web app, which has a certain file that needs to be publicly accessible, but that file is inside a directory which should not. In other words, I need a way to block ...
Nick's user avatar
  • 4,656
0 votes
4 answers
2k views

How to refuse IP's with no reverse DNS with Apache2 or iptables?

With Apache2, or iptables, is there a way to refuse visitors if their IP has no reverse DNS, or does not resolve at all? I have a website targeted to a specific population who has valid reverse DNS. ...
Weboide's user avatar
  • 3,365
2 votes
1 answer
2k views

Apache LimitExcept returning Error 400 on permitted method

I have the following directive in my Apache httpd.conf: <LimitExcept OPTIONS PROPFIND REPORT> deny from all </LimitExcept> OPTIONS and PROPFIND work as expected, but REPORT returns ...
Mark Henderson's user avatar
55 votes
4 answers
148k views

how to restrict access to directory and subdirs

I need to restrict access to any files or subdirs in direstory "testdir". My conf: ... location ~* ^.+\.(jpg|txt)$ { root /var/www/site; } location /testdir { deny all; ...
user avatar
11 votes
4 answers
22k views

What does the apache Satisfy directive do?

I stumbled upon a httpd.conf directive that I can't manage to understand: <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> According to the doc , I would say ...
user41565's user avatar
  • 213
0 votes
1 answer
114 views

apache deny directive

I am using apache deny to deny a country's ip ranges(Turkey in this case). However from the apache log I still see ips from .tr(using dls connection presumably) accessing and get a valid http 200 ...
user12145's user avatar
  • 1,125
1 vote
1 answer
961 views

SQL Server 2005 - Deny DROP TRIGGER permissions

We have a custom trigger on a 3rd party app table to help us audit changes. Occasionally that trigger is removed. Looking thru the traces it shows that the 3rd party app is dropping it (for no good ...
Matt Rogish's user avatar
  • 1,512

1
2