http-status-code-403

Facebook links to my site resolve as 403 forbidden

Hi I'm experiencing a super weird problem. Whenever I post links to my website on Facebook, they come up as Forbidden. The site itself works great and I have no seen this when linking on other sites. Could this be a server misconfiguration? Any thoughts on where to look? here's some Info: I have a dedicated server running WHM 11.25.0 ...

Return custom 403 error page with nginx

Im trying to display the error page in /temp/www/error403.html whenever a 403 error occurs. This should be whenever a user tries to access the site via https (ssl) and it's IP is in the blovkips.conf file, but at the moment it still shows nginx's default error page. I have the same code for my other server (without any blocking) and it ...

Alternative Header() command to set Referer in PHP?

Hello PHP magicians! I am trying to initiate a download from a server that will give a 403 forbidden unless the referrer is set to the same domain. Currently Header() allows me to redirect the user to the file location and init a download, but referrer is always set to my script. Use of curl would cause the file to download on the serve...

Apache DirectorySlash Off - Site breaks

If i set DirectorySlash Off in my .htaccess file and call the directory without the trailing slash i get an 403-Forbidden from my server. If i call it with slash everything works fine. Could anyone explain why? Here are my fully anonymized .htaccess: # GLOBAL CONFIG Options +FollowSymlinks DirectorySlash Off AddDefaultCharset utf-8 php...

403 Forbidden Error with local.yahooapis geocode request

I am trying to make a geocode request against the local.yahooapis.com geocode interface. This was working yesterday, with the same AppID, and a hardcoded address. Now I have broken up the query string and programmatically filled it from a database. the api returns a 403 - Forbidden error. I'm not sure if I have hit some throttling re...

403 Forbidden vs 401 Unauthorized HTTP responses

For a web page that exists, but for which a user that does not have sufficient privileges, (they are not logged in or do not belong to the proper user group), what is the proper HTTP response to serve? 401? 403? Something else? What I've read on each so far isn't very clear on the difference between the two. What use cases are appropriat...

Debuging 403's?

whats the best way to investigate why a server is returning a 403 for a http web request? Can an iis server be configured to provide a more detailed internal log for 403's? ...

Android mediaplyer, streaming mp3, occasionally getting 403 errors, any idea why?

Getting sporadic mediaplayer errors similiar to, 08-09 14:32:56.956: ERROR/HTTPDataSource(59): HTTP request failed w/ http status 403 This is usually right after a seek call (however seeking works the majority of the time, it returns these errors maybe 1 out of every 5 times). Sometimes it happens without seeking at all. I am gettin...

webrequest.GetResponse https throw error 403 protocolerror on windows 2008 x64

Hi, I have a application use Webrequest to post and get some data from a server with a SSL certificate. It is all very well except on Windows 2008 x64. The server return error 403 forbidden. thanks in advance. burns ...

how to crawl a 403 forbidden SNS

i'm crawling an SNS with crawler written in python it works for a long time, but few days ago, the webpages got from my severs were ERROR 403 FORBIDDEN. i tried to change the cookie, change the browser, change the account, but all failed. and it seems that are the forbidden severs are in the same network segment. what can i do? steal...

Using webclient to create asmx or config will cause "The remote server returned an error:(403) Forbidden"

I don't understand why I can't create n test.asmx/test.config file but I could make test.dll or any other file extention using the same codes below: WebClient webClient = new WebClient(); string data = "upload data using webclient."; Stream stream = webClient.OpenWrite("http://152.226.152.162/rightfolder/test.asmx", "PUT"); ...

Django with mod_wsgi returns 403 error

Hi! I am trying to use Django with Apache (and mod_wsgi). With the default Django webserver everything was going well, but now I get 403 (access forbidden) error when trying to load the page. I searched previous posts here and read official docs but the solutions there weren't helpful. Here are the lines from my httpd.conf: WSGIScrip...

java.io.IOException: Server returned HTTP response code: 403 for URL

I want to download the mp3 file from url : "http://upload13.music.qzone.soso.com/30671794.mp3", i always got java.io.IOException: Server returned HTTP response code: 403 for URL. But it's ok when open the url using browser. Below is part of my code: BufferedInputStream bis = null; BufferedOutputStream bos = null; try { URL url = new...

Nginx gives a 403 error for CSS/JS files

I have setup nginx 0.7.67 on Ubuntu10.10 along with php-cli . I'm trying to get my front-controller based PHP framework to run, but all pages except index.php give a 403 error. Ex : http://mysite.com/styles/style.css - 403 Forbidden http://mysite.com/scripts/script.css - 403 Forbidden http://mysite.com/index.php - Works My /etc/ngin...

mercurial + Apache gives 403 error

I have setup my repo at /home/adil/hg/sample-repo and want to serve it via httpd. I am following the tutorial at http://mercurial.selenic.com/wiki/PublishingRepositories#multiple and have created the hgweb.config file and have copied hgweb.cgi (renamed it to index.cgi) to /home/adil/web/mercurial/ My apache config (/etc/httpd/conf/httpd...

rg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden

Hey there, I am trying to access a webservices over https, I have the ssl certificates in place. However when I send the webservice request I am getting: threw exceptionorg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axi...

403 Forbidden with php in worker mode. Only to php files from browser

Hello First off let me start by saying that yes I have searched for this in google and in stackoverflow specifically, I have found many answers and tried them all. At this point I believe my only resource is posting the question myself, even if the scenario sounds repeated please be so kind as to try to help. The situation is quite b...

Intermittent 403s due to CSRF failure (Django 1.2.3)

Hi folks. I've got a slightly crazy/infuriating bug with a site and CSRF. We're running Django 1.2.3, Python 2.6 on Ubuntu with Apache2 + mod_wsgi and have been getting end users reporting 403 CRSF verification failures and 403s as a result. All our forms have a csrf_token and - as far as I am aware - things work fine in local dev and...