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
2 votes
1 answer
212 views

Bing site scan: Avoid Error 403 if index.html is missing the root domain name

I have a website with the following domain name: https://example.com (there is no index.html in the root domain name) I have the following redirect based on language detection in .htaccess: https://...
Goemon Code's user avatar
0 votes
0 answers
35 views

403 header response code

I am getting a 403 header response code for my website while checking this tool https://www.redirect-checker.org/index.php Here is the screenshot below: https://snipboard.io/p2DH1S.jpg Here are the ....
Olivia's user avatar
  • 61
9 votes
2 answers
8k views

AH10411: Rewritten query string contains control characters or spaces

How to reproduce the error: -- A space in my URL will trigger the error. Observation of the error: -- It seems to happen suddenly since around 3/10. ---- I did not upgrade my Apache version, but it ...
Chi's user avatar
  • 91
8 votes
1 answer
4k views

RewriteRule started returning 403 Forbidden error

I have a website that uses a set of quite simple RewriteRules of the format: RewriteRule ^p/(.*)$ /product.php?$1 [L] All was working well and still is working perfectly fine on localhost. For some ...
Jimbo Vader's user avatar
2 votes
1 answer
472 views

When saving with the Wayback Machine, claims "The client does not have access rights" HTTP status=403

I have a WordPress installation which the Wayback Machine can no longer archive. I'm posting this here because I intuit this is a lower level problem. When visiting https://web.archive.org/save/blog....
spiralofhope's user avatar
4 votes
1 answer
144 views

Deny non-local Apache requests that match a specific URL pattern

I need to configure my Apache (2.4) in a way, that It prevents answering requests that don't come from the same IP as the server match a specific pattern in the URL In pseudocode it must look ...
Lokomotywa's user avatar
2 votes
1 answer
80 views

Create a virtual index file to prevent 403s

I'd like to serve (httpd) either 404s or 200s instead of 403s. I found a way to redirect and change 403s so they become 404s but I'm not trying to replace 403s altogether but rather where they are ...
Vita's user avatar
  • 73
4 votes
0 answers
236 views

When Bing requests a sitemap or a robots.txt, why do I see Apache reject the 1st request with a 403, followed immediately by a 2nd successful request?

This is a small issue that has been ongoing for quite some time. When I check my Apache server log for 403's, all entries are related to Bing, and all from when it requests a robots.txt, sitemap.txt, ...
Displayname71's user avatar
3 votes
0 answers
519 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 ...
alancc's user avatar
  • 439
2 votes
1 answer
366 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 ...
Horizon19's user avatar
4 votes
2 answers
3k 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 ...
another_stack_user999's user avatar
2 votes
1 answer
63 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 ...
KUMAR BABU's user avatar
0 votes
0 answers
19 views

cgi problem command line ok but 403 on website

I am running on Debian 9 strech, hello.cgi on command line perl -cTw hello.cgi all is fine When i try to navigate to the subdirectory I get an error 403. I add some lines to apache2.conf to ...
Ornot's user avatar
  • 1
1 vote
1 answer
1k views

How to limit requests to certain domain in nginx?

I have a domain like sub.example.com. I'd like to allow GET access to certain paths uploads only through example.com Something like this: location ~ ^/uploads { allow example.com; ...
supermario's user avatar
1 vote
2 answers
1k 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 ...
A.F.N's user avatar
  • 11
5 votes
2 answers
3k 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 ...
GeekRider's user avatar
  • 129
1 vote
1 answer
840 views

Should I be returning a 301 or 403 to a bad referrer in my .htaccess?

Getting several amounts of bad requests from a particular URL such as site.foo and I would like to redirect all these requests to a dedicated page. The .htaccess code I've researched and implementing ...
DᴀʀᴛʜVᴀᴅᴇʀ's user avatar
0 votes
1 answer
1k views

Apache FollowSymlinks works in DocumentRoot but 403s in subdirectories

I'm trying to run the Piwigo gallery/digital asset manager on a Raspberry Pi using Apache 2.4 on Arch Linux ARM. Piwigo's running happily. For Windows file naming and CIFS reasons, I need to make ...
Hypocee ee's user avatar
2 votes
1 answer
1k 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 ...
Michael Kowalski's user avatar
2 votes
0 answers
305 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 ...
user80885's user avatar
1 vote
1 answer
504 views

Prevent Googlebot from crawling "access denied" error (403) of private forum that are reported in Google Search Console?

I'm running a website base it by vbulletin. Recently I moved one of my forums to a private section of my website so users and googlebot cannot access it there. Now I'm getting lots of access denied ...
AliR3ZA's user avatar
  • 11
1 vote
1 answer
203 views

Repeated hits on my site from different IP addresses trying to access .aspx files using all my bandwidth [closed]

I checked my raw access files after being notified that my site has been limited over the last 24 hours and see different IP addresses trying to access files with .aspx extensions, see attached log ...
zod's user avatar
  • 305
2 votes
1 answer
420 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 ...
henrywright's user avatar
3 votes
2 answers
381 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 ...
posfan12's user avatar
  • 696
2 votes
1 answer
1k 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 ...
Mikhail T.'s user avatar
3 votes
1 answer
424 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?
user70266's user avatar
-1 votes
3 answers
1k views

.htaccess: DirectoryIndex and 403 forbidden

I am learning .htaccess directives. To test, I create a new .htaccess file under my Joomla website and a test.html file. Then I put DirectoryIndex test.html in the .htaccess file. However, I am ...
Wen Shenk's user avatar
  • 505
5 votes
1 answer
373 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 ...
Evgeniy's user avatar
  • 10.1k
3 votes
1 answer
10k 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 ...
texnic's user avatar
  • 227
2 votes
1 answer
2k 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 ...
Isengo's user avatar
  • 121
2 votes
2 answers
655 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 ...
Ankush Mahajan's user avatar
2 votes
1 answer
81 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 ...
Mike -- No longer here's user avatar
2 votes
3 answers
2k 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 ...
Simon Hayter's user avatar
2 votes
0 answers
44 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 ...
Mandiana's user avatar
3 votes
3 answers
2k 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:/...
Vojta Hejda's user avatar
5 votes
1 answer
5k 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&...
intuited's user avatar
  • 161
2 votes
4 answers
217 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 ...
Moray Bresnihan's user avatar
1 vote
1 answer
7k views

403 when query string contains a dot (.) character [closed]

EDIT: did more research, asked new question I dug a bit deeper and realized that the contents of the page are indeed not relevant to this issue. As this question has gotten more and more confusing, ...
intuited's user avatar
  • 161
0 votes
0 answers
2k views

How to allow access to subdirectory in website using htaccess?

I am wanting to create a seperate directory for my analytics program to function. My website is www.loosebruce.co.uk and I want my directory to be accessible as www.loosebruce.co.uk/analytics The ...
tomaytotomato's user avatar
9 votes
2 answers
39k 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=...
space and time's user avatar
2 votes
1 answer
165 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: ...
Chun's user avatar
  • 1,310
0 votes
1 answer
71 views

Setting up a second domain to my web server

I have a domain name which points to my web server, and we added a secondary domain for short urls, which points to the same ip address, however with the new domain, it is giving "Forbidden You don'...
user973783's user avatar
3 votes
1 answer
61k 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 ...
MarvinLazer's user avatar
1 vote
2 answers
981 views

WAMP VirtualHost 403

I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to My ...
Jo Colina's user avatar
  • 131
2 votes
1 answer
583 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 ...
tardis's user avatar
  • 121
3 votes
2 answers
4k 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 ...
chris's user avatar
  • 201
3 votes
1 answer
869 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 ...
user37917's user avatar
1 vote
1 answer
591 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.
user34025's user avatar
2 votes
1 answer
3k 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 ...
Loc Pham's user avatar
  • 121
0 votes
2 answers
374 views

Website I control is only unavailable on company internet connection (403 error) - workaround? [closed]

a website I control is showing 403 errors only on company machines on their own network. It's throwing an Access forbidden! error Error 403 www.example.com Tue Oct 1 Apache mod_fcgid/2.3.7 ...
timshutes's user avatar
  • 101