Questions tagged [http-status-code-403]

The 403 or "Forbidden" error message is a HTTP standard response code indicating that the request was legal and understood but the server refuses to respond to the request.

A 403 Forbidden may be returned by a web server due to an authorization issue or other constraint related to the request. File permissions, lack of encryption, and maximum number of users reached (among others) can all be the cause of a 403 response.

2271 questions
4
votes
0 answers

403 error received when logging in via curl PHP. Cookie issue?

I've been really having a tough time with this. This (in theory) should be pretty straightforward. My log-in attempt looks like this: $curl = curl_init("https://login.example.com/login"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl,…
user2029890
  • 2,493
  • 6
  • 34
  • 65
4
votes
3 answers

HttpClient GetAsync Method 403 error

I am trying a simple display of github repositories. The url "https://api.github.com/search/repositories?q=pluralsight" works in my browser return json and works in fiddler but the following in my .NET Web App is getting a 403 Forbidden error. …
jaykum
  • 138
  • 3
  • 10
4
votes
1 answer

"+having+" in $GET/$POST causes server to return 403 Forbidden

One of my clients has a PHP script that kept crashing inexplicably. After hours of research, I determined if you send any PHP script a variable (either through GET or POST) that contains " having t", or escaped for the URL "+having+t", it crashes…
Dan Goodspeed
  • 3,484
  • 4
  • 26
  • 35
4
votes
1 answer

apache + wsgi + django : Client denied by server configuration

I'm getting a 403 error with my django project. The only line I get in my error log is : AH01630: client denied by server configuration: /srv/http/www/src/myproject/preprod_wsgi.py The permissions for this file are : -rwxr-xr-x 1 root root 552 Jul…
vmonteco
  • 14,136
  • 15
  • 55
  • 86
4
votes
4 answers

IIS 403 forbidden with %2F in the URL

I'm having IIS (Microsoft-IIS/7.5) return back a 403 forbidden and I cannot figure out why. I've narrowed it down to %2F but only when a single letter precedes it. Any idea what could be causing this? These…
gfrobenius
  • 3,987
  • 8
  • 34
  • 66
4
votes
0 answers

Why does this request return a 403?

I'm gathering images to train a ML program, and to do so, I have made the following function. It works for every single server I've tested so far, except for one : exports.grabResize = function(name,url,skip) { var options = { jar: true, …
xShirase
  • 11,975
  • 4
  • 53
  • 85
4
votes
2 answers

403 error in Wordpress 4.0 options.php

I want to disable comments site-wide on a Wordpress site, but I keep getting this one annoying problem. I've looked around and all of the results are for older versions of Wordpress. I have a fresh install of Wordpress 4.0 onto a namecheap hosting…
Sergey Smirnov
  • 303
  • 4
  • 11
4
votes
1 answer

Cloudfront - cannot invalidate objects that used to return 403

The setting I have an Amazon Cloudfront distribution that was originally set as secured. Objects in this distribution required a URL signing. For example, a valid URL used to be of the following…
4
votes
3 answers

Apache 2.4.7 403 Forbidden Error

I'm trying to install the overpass api as a web server with apache (http://wiki.openstreetmap.org/wiki/Overpass_API/install) Here is my 000-default.conf ServerAdmin webmaster@localhost ExtFilterDefine gzip mode=output…
Gmeister4
  • 754
  • 10
  • 19
4
votes
3 answers

Request works fine in browser but 403 in python

I'm using the Requests library in Python. In the browser, my URL loads okay. In Python, it throws a 403. 403 Forbidden

Forbidden

You don't have…

User
  • 23,729
  • 38
  • 124
  • 207
4
votes
2 answers

Redirect all Apache 2.2 403 Forbidden to 404 Not Found

I need to redirect all requests on an Apache 2.2 server for any directory that gives a 403 to a 404 not found. Ex: /xyz or /xyz/ throws a 403 -> redirect to 404 /xyz/sometext.txt returns normally. Looking around, I came across this…
Tui Popenoe
  • 2,098
  • 2
  • 23
  • 44
4
votes
1 answer

Https request returns 403

When I make a request to : " https://www.btcturk.com/api/orderbook " via browser or curl I get the response as expected. When I make the same request via jersey or java libraries such as HttpsURLConnection, I get a 403 forbidden response. I can use…
Pumpkin
  • 1,993
  • 3
  • 26
  • 32
4
votes
2 answers

Custom 403 Error Page in Root Directory

I'm blocking a few IP addresses using the htaccess technique and this works well for all my pages except for the site/document root where the Fedora Core Test Page is displayed instead. I'm aware that the test page is shown when no document in the…
4
votes
0 answers

Passenger Apache Rails 403 forbidden. 2 Urls pointing to the same app 1 works other doesnt

I have a strange problem where I have two separate urls pointing to the same Rails application staging.abcxyz.com staging.abcttt.com My setup runs apache with passenger. The important thing to note here is that both urls point to the same Rails…
Sid
  • 6,134
  • 9
  • 34
  • 57
4
votes
1 answer

List subscription operation: 403 forbidden

I am calling the Azure REST List Subscription Operation. On my dev machine I have installed the certificate in to Current User\Personal. I can successfully call the API and get a response back. Response code = 200 On a test box I have installed the…
andrewb
  • 2,995
  • 7
  • 54
  • 95