Questions tagged [deny]

76 questions
1
vote
0 answers

Can I deny in nginx based by URI and IP?

Basically I have an wordpress site (with a ecommerce store and a social login). I have denied all access to wp-login.php based on ip address. The problem is that social login uses this wp-login file. So I wonder if is possible to: - block almost all…
Alex
  • 11
  • 2
1
vote
1 answer

order allow,deny blocks whole site

I can't get file blocking working. If I use the following statement in .htaccess, it blocks my whole site: order allow,deny allow from all I'm running apache 2.2.22…
mikekehrli
  • 111
  • 2
1
vote
2 answers

MySQL is denying access to a legitimate remote user

I have created a user and given that user full access, but MySQL is still denying access to that user - why? Create user: create user 'myUser'@'Mikes-MacBook-Air.local' identified by 'account_password' Grant privileges to all databases: grant all…
Roy Hinkley
  • 527
  • 4
  • 13
  • 20
1
vote
1 answer

Can Apache dynamically deny?

I host three different websites on the same server. Here's excerpts from this morning's Apache logs: ### SITE 1 ### [Fri Dec 13 09:15:49 2013] [error] [client 85.17.87.36] script not found or unable to stat:…
Timothy B.
  • 113
  • 5
1
vote
1 answer

squid as parent of url filtering

I have this situation: client -> url-filtering -> squid -> internet The squid proxy sees all clients as a single IP ( of url filtering) so I have a lot of connections from a single IP. Squid is the cache upstream proxy. In production, with a lot of…
Powand
  • 11
  • 1
1
vote
1 answer

nginx deny directory and files to be downloaded

gurus. I have a problem and i dont know how to solve it. I am working with Git and Compass/SASS on some projects. Now i want to protect those directories. When i go only to the folder its all fine – i get what i expected a 403 forbidden. location ~…
YeppThat'sMe
  • 115
  • 1
  • 1
  • 5
1
vote
2 answers

Apache httpd: How can I Deny from all, Allow from specifc IP addresses

Can someone take a look at the syntax of the code below and let me know if it is correct -- my intention is to exclude the htaccess for the IP ranges specified in the 'Allow' part and rest of all should ask for authentication when they access the…
Chandana
  • 11
  • 1
  • 2
1
vote
1 answer

What is the easiest way of adding a list of AWS IP addresses to IIS 7.5 disallow list?

So far, I have been manually adding C-class IP address ranges to the IIS disallow list, ie; 101.22.32.0 / 255.255.255.0. I would essentially like to add all the AWS IP address ranges found here: EC2 Public IP Ranges and would like to know of a good…
ElHaix
  • 269
  • 3
  • 13
1
vote
1 answer

Reject Nginx request with no authentication in general

Is it possible to reject all nginx request, which don't send basic authentication data with them? I have requests like this: xxx.xxx.xxx.xxx - - [24/Oct/2012:10:32:12 +0200] "POST /path HTTP/1.1" 401 1387 "-" "Apache-HttpClient/4.1.1 (java 1.5)"…
disco crazy
  • 277
  • 6
  • 14
1
vote
1 answer

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 include a bunch of configuration files using…
Owen Blacker
  • 631
  • 1
  • 8
  • 20
1
vote
1 answer

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 want to restrict it to LAN access only for the…
Jason
  • 361
  • 7
  • 19
1
vote
2 answers

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 reasons. It is just a test server, don't want just…
darkAsPitch
  • 1,931
  • 4
  • 25
  • 42
1
vote
1 answer

Nginx + jirafeau - deny acces to admin.php

Hello i try to deny access for externe IP to my URL admin.php of my website with nginx. I have a jirafeau server with a example.com/admin.php I try to deny acces for this page but dont work. I am new with nginx this is my conf : location /…
1
vote
1 answer

IIS stop bogus API

In IIS can it stop bogus API calls? Yesterday I got flooded with something that was trying to see if a page is on the site. They got the 404 but the application still had to check to see if that was a good page in the application. Can IIS stop this…
Jefferson
  • 13
  • 4
1
vote
1 answer

Different methods of denying access in httaccess

I want to deny the access to all files and subdirectories in a given folder via .htaccess. I found this two methods: deny from all Order Deny,Allow Deny from all Is there any difference between this two?
TmCrafz
  • 139
  • 1
  • 9