Questions tagged [deny]
76 questions
1
vote
2 answers
How to Block X forwarded-for IP in nginx
My website is running behind aws Load Balancer. Now if i try to deny any IP to access my website by using "deny 59.92.130.106" under location / nothing happened. That IP still getting 200 response.Anyone having idea why this happened and how can i…

Rocky
- 49
- 2
- 9
1
vote
1 answer
How to prevent other people from proxy_pass their own domains to my domain?
People can use Nginx to proxy_pass to my domain and on the browser, the contents are mines, but on address bar it's their domains.
How to detect when the requests are thru' proxy_pass and deny those?
For example, when I purposely proxy_pass to…

Dee
- 125
- 1
- 6
0
votes
0 answers
How can I forbid my email client (Mail iOS) to send email to a specific email address
What I mean!
Iam in conflict about business or speak about a matter with someone.
Instead of sending the message to the person I speak, I send the message to the person/company that I talk about!
This is easy to be done when you are thinking about…

Tassos K
- 1
- 1
0
votes
1 answer
Redirecting denied connections to ports 80, 443 to other IP that hosts an error page
Okay, here we go.. I am using UFW on my Debian 8 server to block all incoming connections on ports 80 and 443, except for those that I have allowed. However, I need to redirect those dropped connections to another IP address (which hosts a website),…

EAdev
- 11
- 1
0
votes
1 answer
Deny access to change file extension in shared folder?
Is it possible to deny users from changing files extensions in a shared folder?
I'm asking that to try and avoid ransomware infection.
I will deny people from changing file extensions inside the shared folder, so the encryption process won't touch…

Shlomi
- 331
- 2
- 9
- 19
0
votes
0 answers
Value in only allowing access to backend from specifc IPs
I have a Load Balancer in front of several nginx web servers. I want to lock down my web servers as much as possible so I've added this to the http block in my nginx.conf:
allow {internal_ip_of_load_balancer};
deny all;
As I understand it, this…

tptcat
- 247
- 1
- 2
- 7
0
votes
1 answer
SELinux preventing Asterisk from connecting to IMAP server for voicemail
I am running Asterisk on Fedora 23 and am using the voicemail IMAP module to store voicemails to Gmail. When SELinux is in enforcing mode it prevents Asterisk from connecting to Gmail. Here is the error message from…

user553702
- 121
- 1
- 5
0
votes
1 answer
NGinx Block all Wordpress Files except wp-login and wp-admin
How can I deny all; access to all front-facing wordpress files, except wp-login.php and wp-admin?
What I currently have blocks access to all wp-* including the wp-admin
location ~ ^/(index\.php|wp-.*\.php) {
deny all;
}
Tried Code Block:
# Deny…

Kevin
- 133
- 1
- 2
- 14
0
votes
1 answer
nginx: [warn] low address bits
So yeah, i got a list of blocked ip-ranges, and some of them gives me an error in gninx when i try to restart nginx.
nginx: [warn] low address bits of 79.8.0.0/12 are meaningless in /etc/nginx/includes/blocked-redirect.conf:9635
nginx: [warn] low…

0x0b
- 1
- 1
- 1
0
votes
1 answer
Mail send by server gets denied by mx.hotmail.com
I got an notice that some clients werent receiving their emails, all clients used hotmail accounts, while i looked into logs i got this part
Sep 25 07:52:51 s22090 named[25045]: client 127.0.0.1#44056: query (cache) 'hotmail.com/MX/IN' denied
Sep 25…

Gntem
- 123
- 9
0
votes
1 answer
APF Limit to Deny IPs?
So, I've been actively banning IPs of malicious users. Previously, I only used IPtables to do this, but since giving APF a whirl, I've been having issues. It appears that there is a limit to the number of rules you can set with APF.
I've got a list…

Exit
- 141
- 1
- 1
- 9
0
votes
1 answer
Nginx deny IP's and setting custom 403 downloads a file?
I've attached my Nginx conf file for my default site which runs on Ubuntu.
What I'm trying to achieve is the following:
Main directory is /usr/share/nginx/www with the default file index.php
Restricting IP addresses for now until launch so only…

DT.DTDG
- 143
- 1
- 3
- 7
0
votes
1 answer
Global denial of certain file(s) on Apache
I run a webserver under Apache with several virtual hosts. I would like to prohobit the access to certain file names, but instead of using a deny rule on each vh I would like to know if I can achieve this with global configuration?
Update
I found…

SteffenNielsen
- 477
- 4
- 15
0
votes
1 answer
httpd (WordPress) gets avc denied write (SELinux)
I'm getting following message in my /var/log/audit/audit.log:
type=AVC msg=audit(1402615093.053:68): avc: denied { write } for pid=799 comm="httpd" name="php" dev="xvda1" ino=8667365 scontext=system_u:system_r:httpd_t:s0…

alexus
- 13,112
- 32
- 117
- 174
0
votes
1 answer
hosts.deny line too long or too big file?
I have about 50k ip addresses denied in the hosts.deny file, generated by a script with 7 addresses per line max and get this error:
warning: /etc/hosts.deny, line 4429: missing newline or line too long
Line 4429 is the one in the middle here:
ALL:…

Daniel W.
- 1,609
- 4
- 26
- 48