Questions tagged [403-forbidden]

403 is a HTTP status code that tells the user/application that they do not have permission to access the requested document/webpage.

Filter by
Sorted by
Tagged with
8
votes
1answer
9k views

How to set up a 403 forbidden

I've recently set up my first commercial website for someone, with godaddy hosting. I want to set up a 403 forbidden on several directories (and their contents) that are referenced to through php ...
7
votes
1answer
457 views

403 error on index file

When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI ...
6
votes
1answer
3k views

When to reply 400 Bad Request

According to www.w3.org, a Web server should reply with status code 400 Bad Request if: "The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat ...
5
votes
2answers
27k views

How can I use .htaccess to respond with 403 forbidden status for URLs that contain a query string?

Some bots have been crawling my site for every link that ends with: ?utm_source=dlvr.it&utm_medium=twitter I haven't checked out its IP. Then other bots (10+) follow the link rules ?utm_source=...
5
votes
2answers
804 views

Can a 403 error ever be client side?

I've got a well-established web application. It's working for lots of people with a variety of browsers and platforms. But, there's this one guy... He's getting a "403 Forbidden" on his side, I've ...
5
votes
1answer
311 views

Looking for explanation of Apache behavior on manipulating headers

Tried to get an answer at ServerFault - they don't know, all real gurus are sitting here. The background of the issue: Googlebot creates non-existing URLs and tries to crawl them. On some URLs Apache ...
5
votes
2answers
2k views

How could I forcibly output the default 403-forbidden error page when http://example.com/not_found is requested?

This is my first question on StackExchange so bear with me, here is a brief breakdown of my current setup: Two different domains, two different TLDs (.dk and .de) on the same hosting plan for the ...
5
votes
1answer
3k views

Forbidden 403 error on Google AdSense requests

I have created a new website and have set some ads. For some unknown reason, FireBug tells me that I get 403 errors on Google Adsense requests. I have checked my AdSense account and it does not block ...
4
votes
2answers
574 views

prevent hotlinking of off-site content?

I have a www.example.com site where I serve all static content (e.g. http.//www.example.com/image.jpg) off a CDN with URLs like http://static.example.com/image.jpg An Apache 2 .htaccess rule ...
4
votes
2answers
589 views

Fetch as Google error 403

2 weeks ago, Google started being unable access my website anymore. In Webmaster Tools I can't fetch any pages, always getting error 403, and the website has been completely dropped from Google search ...
3
votes
2answers
2k views

403 Error Fetching Image with JS

I've read all the 403-related questions here and elsewhere and I can't find an answer to this question: When I try to get a particular image on a remote domain via JavaScript I get a 403 error. But ...
3
votes
2answers
360 views

Make a file invisible remotely

I have a PHP file that stores some connection info for part of my website. It is not "readable" from the Web, which is good. I.e. it is blank when you navigate to it from the Web. However, even if it ...
3
votes
1answer
56k views

Forbidden 403 for js file on localhost?

apologies if this isn't the right place to post this. I posted it on Stack Overflow and a user suggested I put it here. Anyway, I've looked all over google and the site and none of the solutions I've ...
3
votes
3answers
4k views

Access denied to visit a site without www

Why can I visit my own site: http://www.example.com but not http://example.com, which gives me HTTP Error 403 (Forbidden): The server refused to fulfill the request How do it fix it? I wrote the ...
3
votes
2answers
5k views

What does Google do with indexed pages returning 403?

I guess that Google removes already indexed pages that are now returning the HTTP error 403. Unfortunately I can't find any definitive statement on that matter. Do you know the answer?
3
votes
1answer
2k views

Can´t verify my site on Google (error 403 Forbidden). I have other sites in the same host with no problems whatsoever

I can´t verify my site on Google. I´ve done this several times for several sites, all inside the same host. I´ve tried the HTML tag method, HTML upload, Domain Name provider (I canp´t find the ...
3
votes
1answer
278 views

Apache redirect all requests for file type to 404

I have some .inc files that I want blocked from being accessible via web pages. I want to simply redirect them to another page or throw a 404 when those files are accessed. I have tried this so far ...
3
votes
1answer
371 views

Do 404 and 403 errors listed in Google Search Console affect SEO ranking?

I'm prerendering a Angular app for SEO. When I check in the webmaster tool, there are a few hundred 404 and 403 errors. Will this affect my SEO ranking?
3
votes
1answer
757 views

Find origin of the 403 error (not my server)

We are running an Apache server that provides files to several users. Some users are getting the 403 error when trying to access any download url on our Apache. I don't see those 403 errors in our ...
3
votes
3answers
134 views

403 or 503 for the page needed to be reviewed by administrator before published?

There are some user generated pages on my site. And those pages must be reviewed by the site administrator before published after once they are updated by the users. So the workflow is basically just ...
3
votes
1answer
3k views

403 when query string parameter contains an encoded URL

I'm using shared hosting with minimal access to any configuration settings. I've created a more or less empty HTML file, emptypage.html, with the following contents: <!DOCTYPE html> <html&...
2
votes
1answer
6k views

Is HTTP code 401 or 403 appropriate for when a logged in user is not allowed to view the data?

I am looking for a good way to return an error when an unauthenticated/unauthorised user is trying to get a restricted access content from my site. Currently I ask the user to login, check the ...
2
votes
4answers
174 views

403s appearing in WMT but when I FETCH GOOGLE returning same URLs as 200

HI there over the last few days Google Webmaster Tools has been showing me 403 errors for a series of URLS. However when i FETCH them they come up as 200 OK and when I look in Google using keywords ...
2
votes
1answer
370 views

Which HTTP response status code is most appropriate for a restricted URL?

I have a page on my website that's targeted at logged-in users only. Logged-out visitors shouldn't see the content. Imagine the page URL is example.com/upload/. In cases when users aren't ...
2
votes
2answers
634 views

Is it OK to give status 404 to unauthorized users?

In recent months I have come across several sites, which give a 404 status/error page, when there should be 403 or maybe 401. For example, I have a private repository on github.com with link: https:/...
2
votes
2answers
4k views

How can IIS 7.5 have the error pages for a site reset to the default configuration?

A mishap occurred with web.config to accommodate a subsite existing. I made use of “<location path="." inheritInChildApplications="false">”. Essentially it was a workaround put in place for ...
2
votes
1answer
915 views

How to tell Apache to reply with 403 instead of 401?

We have some rules for a subtree of Locations, which involve Require-ing ldap-group and exprs. The user is duly challenged to supply login-credentials, which are verified. However, even when the ...
2
votes
3answers
1k views

Using .htaccess deny returning 302 and not 403 forbidden

I'm in the process of adding yet another layer of security to some of my WordPress installs, since some of my customers sites use shared hosting, and generally they do not ban users for brute force ...
2
votes
2answers
106 views

AJAX file 403's

Google webmaster tools shows a couple of 403 crawl errors (URL errors, access denied) for folders holding AJAX files on the ColdFusion server: CFIDE/scripts/ajax/FCKeditor/ CFIDE/scripts/ajax Will ...
2
votes
1answer
3k views

Getting 403 Forbidden after changing webroot

I am running Ubuntu with Apache (LAMP stack). When I changed the webroot from /var/www to /media/data/www, I keep getting 403 Forbidden even after chmod-ing the directory + files to 777. What did I do ...
2
votes
1answer
69 views

403 Forbidden error for Wordpress login after whitelisting Cloudflare IPs in htaccess

I’m using Cloudflare nameservers and tried to whitelist Cloudflare IPs through htaccess file, but it results in a 403 Forbidden error for my Wordpress login. Here are the directives I used in ...
2
votes
1answer
32 views

Why do Google search result webpage link and facebook shared webpage link of my website when clicked shows 403 forbidden error?

I have a website. It is working fine. But since yesterday, If I click on Google Search Result webpage link of my website, then it shows following error: It appears you don't have permission to ...
2
votes
1answer
710 views

htaccess empty referer deny “google bot”

I put this rule into htaccess file to deny empty referers which is returning 403 SetEnvIfNoCase Referer "^$" bad_user Deny from env=bad_user I can see the log, it's denying also Googlebot which ...
2
votes
1answer
1k views

Cakephp 3 installation on Ubuntu doesn't have permission to access index.php

I have installed Cakephp on my ubuntu webserver (well copied it in var/www/html) following this tutorial https://askubuntu.com/questions/628938/how-to-install-cakephp-in-ubuntu-14-04 I am also using ...
2
votes
2answers
503 views

Pages are returning a 403 response code and not getting indexed in Google

I am working on a website but not all of its pages are getting indexed in Google. Everything seems fine to me from the URL structure to the canonical tag. However, when I check the pages header ...
2
votes
1answer
73 views

Why would a url of example.com/n (where n is the same number repeated 500x) return a 403 error?

I'm trying to add new functionality to my site which involves passing a whole bunch of parameters (could be hundreds of parameters) all encoded in base64 format. When I attempt the new URL I get an ...
2
votes
1answer
144 views

Forbidden access when saving an edited question post using Question2answer script

I installed Question2answer on my paid server. After I published a post/question on my Question2answer site I tried to edit it, but when I was trying to save the post, it outputs an error that says: ...
2
votes
1answer
520 views

Apache 403 error despite group permission

I have a NAS running Linux with a Apache 2.2. I want the apache process (running as user nobody) to run as different group "users" to read some files. I tried the following without success: in its ...
2
votes
1answer
2k views

Googlebot received Access Denied when crawling a directory

I'm facing the same problem with Googlebot not able to crawl my page. Mine problem doesn't have anything to do with www or not. Google can crawl all my pages except one directory and this directory ...
2
votes
2answers
2k views

Access denied 403 errors after migrating my site

I've recently migrated my Joomla site from one shared hosting to another with Hostgator. GWT notified me about many 403 access denied pages. I've checked with Firebug too, and even though browser is ...
2
votes
1answer
184 views

Does setting default pages for sub directories improve seo?

I noticed 403 errors on sub directories of my site while looking over google webmaster tools. for example .com/reviews/ has a 403 error. I set the default pages for the sub directories (pointed to ...
2
votes
1answer
578 views

Apache rewrite returns error 500

I'm trying to figure out what I'm doing wrong with this .htaccess rewrite: Options -Indexes RewriteEngine on RewriteBase /test/site/ RewriteOptions MaxRedirects=10 RewriteCond %{...
2
votes
0answers
35 views

Can I test if my site's URLs have 403 errors for Google Ads Bot?

All URLs in my WordPress site can be visited via browser such as FireFox and Chrome successfully. However, today I receive emails from Google Ads telling me that some of the URLs have errors. The ...
2
votes
0answers
261 views

Google Webmaster query api returning 403 error

We are using php library to fetch webmaster query API data and getting 403 permission denied error while able to fetch the same data using webmaster analytics tool. The following are the things which ...
2
votes
0answers
40 views

403 or 301 domain pointing to our domain? [duplicate]

We recently discovered that a large, publicly traded corporation purchased a domain that they have pointing to our domain. Both the corporation and the domain are completely unrelated to our type of ...
2
votes
0answers
1k views

Mysterious 403 errors on images with proper permissions [closed]

Recently I have been trying to install a forum on my website. At first I was having an issue with the forums alone but then I noticed it was occurring elsewhere on my website as well. When I have ...
2
votes
2answers
792 views

Would a 403 page, a blank page and a page redirect be indexed by search robots?

I am wondering if a disallow directive needs to be issued to robots on pages that will generate: a 403 forbidden error; a blank page, or; a page redirect (to log in page for example). Would not ...
1
vote
1answer
545 views

“Access denied” error in Google Webmaster tools

I have an access denied problem in my webmaster tools. It says 404 errors. How can I solve this? I have already fixed the errors, but they are not removed from Google Webmaster Tools.
1
vote
2answers
491 views

403 Error for a JavaScript URL in Search Console

Its a long time Google Search Console show me a 403 Error for below link. Content/img/static/skins/ I searched this URL in linked from page Html source and even in inspect element browser (maybe ...
1
vote
1answer
1k views

403 Forbidden Error?

I recently ran Xenu link checker on my site. I link to several Wikipedia pages and ever wiki page generates a 403 code. Here is an example of the message: http://en.wikipedia.org/wiki/Alaska ...