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
1answer
371 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
0answers
94 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
1answer
99 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 ...
3
votes
1answer
451 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 ...
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 ...
0
votes
0answers
16 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 ...
1
vote
1answer
234 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; ...
-1
votes
3answers
987 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 ...
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
2answers
29k 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=...
2
votes
2answers
578 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
424 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 ...
3
votes
1answer
57k 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 ...
2
votes
1answer
752 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 ...
0
votes
1answer
717 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 ...
2
votes
3answers
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 ...
1
vote
1answer
554 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
1answer
346 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 ...
8
votes
1answer
10k 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 ...
2
votes
0answers
272 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 ...
1
vote
1answer
87 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 ...
2
votes
1answer
997 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 ...
3
votes
2answers
361 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 ...
2
votes
1answer
77 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 ...
3
votes
1answer
377 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?
5
votes
1answer
317 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 ...
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
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
513 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 ...
4
votes
2answers
592 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 ...
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
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 ...
1
vote
2answers
958 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 ...
2
votes
2answers
681 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
4answers
175 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 ...
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&...
0
votes
1answer
5k 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, ...
0
votes
0answers
1k 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 ...
2
votes
1answer
145 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: ...
1
vote
1answer
2k views

Rewrite rule for 403

I have an .htaccess file: In this file it redirects to index.php in case a file or directory is not found. My code is as below: <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-...
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 ...
0
votes
1answer
66 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'...
2
votes
1answer
534 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 ...
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
1answer
770 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 ...
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 ...
1
vote
1answer
3k views

Access Forbidden! Apache Windows XP

This is a great tutorial on how to server websites other than in default htdocs folder in XAMPP. It worked for me the other day but then I had to reinstall XAMPP (1.7.7 was 1.7.6) and now I am getting ...
5
votes
2answers
863 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 ...
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 ...
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 ...