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
3
votes
1answer
24 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
26 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
14 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 ...
0
votes
0answers
23 views

Can Cloudflare redirect a referrer before they hit the site?

History I have a few WordPress sites that I manage and I've coded the 404 and 403 to email a dedicated account with hits to these pages. On a local machine daily the emails are compiled to a CSV and ...
1
vote
1answer
39 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
vote
2answers
362 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 ...
4
votes
2answers
1k 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 ...
1
vote
1answer
249 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 ...
0
votes
1answer
552 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
1answer
589 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
0answers
223 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
320 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 ...
1
vote
1answer
82 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 ...
1
vote
1answer
316 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 ...
3
votes
2answers
348 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
717 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
1answer
351 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?
-1
votes
3answers
594 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
1answer
287 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
4k 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
440 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
68 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
3answers
941 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
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
2answers
451 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:/...
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
4answers
166 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 ...
0
votes
1answer
3k 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 ...
5
votes
2answers
23k 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
1answer
139 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: ...
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'...
3
votes
1answer
53k 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 ...
1
vote
2answers
920 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
1answer
435 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
712 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 ...
1
vote
1answer
537 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.
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 ...
0
votes
2answers
342 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 ...
1
vote
1answer
557 views

Can preventing directory listings in WordPress upload folders cause Google ranking drops when they cause 403 errors in Webmaster Tools?

I recently moved to a new host that blocks crawling to my uploads folders but (hopefully) allows the files in the folder to be crawled. I now show many 403 errors for each folder in the uploads ...
1
vote
1answer
514 views

Incomprehensible new 403 errors from Google

I recently received repeated notices from Google saying my site has an increase in 403 authorization permission errors. Looking at the chart I see that starting on July 22 the errors are indeed ...
0
votes
1answer
936 views

Will these type of 403 errors affect my ranking?

Let's say I have a directory that has a 403 forbidden error for all of the content in it, however a few of the images in its subdirectories return a normal 200 status. Will this fact affect my ranking?...
3
votes
3answers
131 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 ...
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 ...
0
votes
2answers
2k views

Ruby on Rails - Passenger Nginx - 403 Forbidden

I've been searching for an answer for a long time now so I'll just try here... I'm trying to get an Ruby on Rails application running with passenger and nginx but I'm getting 403 forbidden when I'm ...
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} !-...
4
votes
2answers
558 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
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 ...