Error 403: Forbidden

Hi, @aeskt. You seem to have two IP addresses configured for the apex domain:

technicalpurple.com.	3600	IN	A	75.2.60.5
technicalpurple.com.	3600	IN	A	66.96.162.148

The second DNS record above (for 66.96.162.148) is not pointing to Netlify.

Netlify returns a 200 response:

$ curl --compressed -svo /dev/null --resolve technicalpurple.com:443:75.2.60.5 https://technicalpurple.com/  2>&1 | egrep '^< '
< HTTP/2 200
< age: 15
< cache-control: public, max-age=0, must-revalidate
< content-encoding: gzip
< content-type: text/html; charset=UTF-8
< date: Thu, 19 May 2022 03:01:36 GMT
< etag: "cebd6fb86adcae00ca28d9f77ab6c3d6-ssl-df"
< server: Netlify
< strict-transport-security: max-age=31536000
< vary: Accept-Encoding
< x-nf-request-id: 01G3D47CQMQ3HEJM9V9TH0GKDK
< content-length: 53645
<

The other IP address returns a 403:

$ curl --compressed -svo /dev/null --resolve technicalpurple.com:443:66.96.162.148 https://technicalpurple.com/  2>&1 | egrep '^< '
< HTTP/1.1 403 Forbidden
< Date: Thu, 19 May 2022 03:01:58 GMT
< Content-Type: text/html; charset=iso-8859-1
< Content-Length: 209
< Connection: keep-alive
< Server: Apache/2
< Age: 0
<

If you delete the second A record for 66.96.162.148` the issue should be resolved.

Amazing, I learned something more from your responses and commands examples.
Thank you

1 Like

Hello , i have same problem too , can you help me ? I tried everything you write here for solving but still i have same problem , when i and my friends (for test) enter my site sometimes we get

Forbidden You don’t have permission to access / on this server.

this error and sometimes everything is ok , now i get “This site can’t be reached” error too

celebrated-pithivier-3935d9.netlify.app

Hi,

This appears to work fine.

1 Like

Hi, I have a similar problem after pointing directly to netlify’s name servers
The domain is (anushotit.com)
I have checked the name servers with the “whois” command and they point only to netlify and I keep getting the 403 Forbidden error

Hey @Olumurewa

I suspect this issue was due to DNS still propagating. anushotit.com loads fine for me. Are you still experiencing this issue?

Yes I am still experiencing the same issue.

I don’t believe that error is coming from Netlify.

It appears you are accessing the site from inside WhatsApp, is that correct? Have you tried accessing it via a browser normally, or another device?

I have tried and this is the screenshot

This is what I see @Olumurewa

% curl --compressed -svo /dev/null --resolve anushotit.com:443:75.2.60.5 https://anushotit.com/  2>&1 | egrep '^< '
< HTTP/2 301
< age: 4638
< cache-control: public, max-age=0, must-revalidate
< content-type: text/plain
< date: Fri, 26 Aug 2022 21:31:49 GMT
< location: https://www.anushotit.com/
< server: Netlify
< strict-transport-security: max-age=31536000
< x-nf-request-id: 01GBE5GGGE330YHQ1WGSV4NNHV
< content-length: 41
<

And

% curl --compressed -svo /dev/null --resolve www.anushotit.com:443:75.2.60.5 https://www.anushotit.com/  2>&1 | egrep '^< '
< HTTP/2 200
< age: 4682
< cache-control: public, max-age=0, must-revalidate
< content-type: text/html; charset=UTF-8
< date: Fri, 26 Aug 2022 21:31:50 GMT
< etag: "c7bacd606edb327aa690aab3720c7ddc-ssl"
< server: Netlify
< strict-transport-security: max-age=31536000
< x-nf-request-id: 01GBE5HV0AHKG9XXEAP4F39M04
< content-length: 732
<

This clearly shows the site is served by Netlify.

I suggest there is an issue with the DNS you are using, either locally or somewhere on the network. This is nothing to do with Netlify.

Thank you. I am really impressed withthe response times :netliheart:

hello Olumurewa,

the site may be blocked or cached from the whatsapp in-app browser. After curling the URL, the site comes up:

curl -IL  anushotit.com
HTTP/1.1 301 Moved Permanently
Age: 0
Cache-Control: public, max-age=0, must-revalidate
Content-Length: 37
Content-Type: text/plain
Date: Sat, 27 Aug 2022 08:23:08 GMT
Location: https://anushotit.com/
Server: Netlify
X-Nf-Request-Id: 01GBF6BHNJHTXHZSQ4V2CEEC2S

HTTP/2 301
age: 0
cache-control: public, max-age=0, must-revalidate
content-type: text/plain
date: Sat, 27 Aug 2022 08:23:08 GMT
location: https://www.anushotit.com/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01GBF6BHZXVW0N052YBWBQ6C6G
content-length: 41

HTTP/2 200
age: 0
cache-control: public, max-age=0, must-revalidate
content-type: text/html; charset=UTF-8
date: Sat, 27 Aug 2022 08:23:08 GMT
etag: "bed4ebeae776323d1575270c39c99e50-ssl"
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01GBF6BJCCHBT9MA7TQGM0EA5E
content-length: 732

Please try a different browser.

Hey I have been having the same issue. It has been more than 24 hours. The sites link is herfazy.com. I don’t know what to do or if the problem is from the domain name or the host (I use an external domain name)

Hi @Michael22

herfazy.com is not configured to point to Netlify

% dig herfazy.com
herfazy.com.		14400	IN	A	209.142.64.132

Have a read through this support guide

You can find more resources for DNS in

So should I talk to the company who provided me with the dns to help me point it to netlify?

If you are unable to change the DNS entries, then you should contact the domain registrar or person who administers the domain, so they can assist you in configuring the domain correctly.

I already did and he is about to configure it for me later. Thank you so much for your help sir.

1 Like

Hi @luke !,
I have the same problem and I cannot resolve it after trying for 2 hours straight . Could you please help me out?
Custom domain: arphicagency.com
Site name: https://arphicagency.netlify.app

@luke Hi Sir I have seen that you solved a lot of problems here could you please help me out.
Site name: https://arphicagency.netlify.app
Custom domain: arphicagency.com

Hi @richdawg :wave:t6:, welcome to the forums! I checked the links you provided and your domain is redirecting fine to the site name. Your DNS is also configured properly. I suspect when you set up your DNS it was still propagating as outlined in this article here. [Support Guide] Compiled resources for custom domains on Netlify and DNS settings -- start here!

This can take upwards to 48 hours.

Are you still experiencing this issue?