Need up to 30 seconds to load.
hello
my name is victoria and today we are
going to talk about what is 403
forbidden and how to fix it let's go
[Music]
a 403 forbidden error occurs when the
web server forbids you from accessing
the page you are trying to open in your
browser it means that the web server
understands the request but can provide
additional access this is because most
websites are configured to prevent
attackers from accessing sensitive files
by disabling directory browsing
the two most common causes of 403
forbidden errors are wrong file or
folder permission settings or incorrect
settings in the hd access file so let's
go through the four methods to fix this
error
one of the easiest methods to fix 403
forbidden errors is to simply clear your
browser's caching cookies the website's
link might have been changed and the
real web link is now different from the
cached version so the issue should be
resolved by clearing the browser's cache
and cookies keep in mind that the
leading cache may cause your next visit
to the website to take longer since your
browser will request all of the site's
files again
also clearing the cookies will log off
from your websites where you are signed
in
so here's how to clear caching cookies
on google chrome if you're using another
browser the process is relatively very
similar
click here on three dots and then press
settings
once you have done that locate security
and privacy settings
now press on clear browsing data and
make sure that all of the checkboxes are
checked
select their time range and click clear
data
once you have finished try to revisit
the website to see if that worked
so as i already mentioned pylon
directory permissions are one of the
most common causes when the files are
created they come with the specific
default file permissions which control
how you can read write and execute them
but before we get into this method i
must mention if you're using hostinger
there's a really great tool that will
take care of all of your permission
problems just in one single click okay
open your hostinger dashboard and scroll
down to the bottom under the other
category choose fix file ownership and
then press execute
this tool will save you loads of time
and will restore all of your files
directory permissions to default values
alright now let's fix this error by
using ftp
first what you have to do is to
configure ftp client and connect it to
your website if you need help with that
here's a link to our video how to use
filezilla that will explain to you step
by step how to do that
once you're connected right click public
html and select file attributes
now enter permission
755 in the numeric value field
select apply to directories only and
press ok
there's the standard practice for file
permission using numeric values so
755 for folders
645 for static content and 700 for
dynamic content
after you are done with that you will
need to repeat the steps we just made
just change the number from
755 to 640
and apply to files only
so right click on public html press on
file attributes enter 644
and select apply to files only and then
press ok
now try accessing the website and if
everything was done successfully the
error should be resolved
okay
now let's try the third method by
checking the hd access file
on your hpanel dashboard locate the file
manager if you're using cpanel the steps
will be the same
then open the public html directory to
find the htaccess file once you locate
the file right click on it and select
download to create a backup
now as you have in backup you need to
delete the hd access file
ok let's check the website if it works
perfectly this means that the hd access
file was corrupted and you need to
generate a new one
to do that
you are going to need to log into the
wordpress dashboard
once you've done that press on settings
and then permalinks
don't make any changes while you are on
the dashboard and then click save
changes button on the bottom of the page
this will generate a fresh hd access
file for your website
now just load the website and the error
should be fixed
alright
if you tried all of the methods i
already mentioned but it didn't help it
could be that incompatible or faulty
plug-in press the error so let's fix it
but to not waste any time don't go by
disabling one plugin after another and
checking if one of them is causing the
issue
i will show you how to disable all of
them at the same time and by following
the next steps you will be able to
detect the issue okay go to your age
panel and locate the file manager
and then go to the public html
then you have to find the vp content
folder and press on it
in vpa folder check for plugins folder
and once you locate it rename that
folder disable plugins to disable all of
the plugins that you have
then try to access the website if the
error is gone that means that the issue
is definitely lice with plugins
what you have to do now is to rename the
folder to plugins and work by disabling
it one by one to detect which one is
faulty
once you find it update the plugin if
necessary or delete it
and here's our four methods on half the
fix 403 forbidden error i hope it helped
and your website is up and running but
if you have any questions don't hesitate
to leave them in the comments below
don't forget to subscribe to hostinger
academy until the next time
you