Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo corregir el error 403 Forbidden en WordPress

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Estás lidiando con el error 403 Forbidden en tu sitio WordPress?

El error 403 Forbidden es uno de los errores más molestos con los que se puede encontrar el propietario de un sitio web WordPress. Puede impedirle acceder a su área de administrador de WordPress y/o a páginas específicas de su sitio web.

En este artículo, le mostraremos cómo corregir fácilmente el error 403 Forbidden en WordPress.

Fixing 403 Forbidden error in WordPress

¿Qué es el error 403 Forbidden en WordPress?

El código de error 403 Prohibido se muestra cuando los permisos de su servidor no permiten el acceso a una página específica de su sitio web WordPress.

Este error suele ir acompañado del texto

403 Prohibido – No tiene permiso para acceder a ‘/’ en este servidor.

Además, se ha producido un error 403 Forbidden al intentar utilizar un ErrorDocument para gestionar la solicitud.

He aquí un ejemplo:

403 Forbidden status code shown on a WordPress site

Existen diferentes escenarios en los que puede aparecer este error. Por ejemplo:

También puede ver “Acceso denegado” en lugar del estado completo 403 Prohibido. Alternativamente, el mensaje podría decir, ‘El acceso a sudominio.com fue denegado. No tiene autorización para ver esta página”.

Para más explicaciones acerca de los códigos de error de WordPress, puede consultar nuestra lista de los errores más comunes de WordPress y cómo corregirlos.

Ahora que ya conoce los distintos tipos de errores 403, hablemos de sus causas.

¿Qué causa el error 403 Forbidden en WordPress?

El código de error 403 Forbidden aparece cuando su servidor no permite el acceso a una página específica. Hay varias causas que pueden hacer que esto ocurra.

Una causa común del error 403 Forbidden en WordPress son los plugins de seguridad mal configurados. Muchos plugins de seguridad de WordPress pueden bloquear una dirección IP (o toda una serie de direcciones IP) si consideran que son malintencionadas.

Otra posible causa podría ser un archivo .htaccess corrupto o permisos de archivo incorrectos en su servidor.

Su empresa de alojamiento de WordPress a veces puede hacer cambios accidentales en los ajustes de su servidor. Esto puede provocar un error 403 Forbidden en su sitio.

Dicho esto, veamos cómo corregir el error 403 forbidden en WordPress.

Nota: Antes de hacer nada, le recomendamos que cree una copia de seguridad completa de su sitio web en WordPress. Puedes marcar / comprobar nuestra guía sobre cómo hacer una copia de seguridad de tu sitio WordPress. Si está utilizando un plugin de copia de seguridad automática de WordPress, asegúrese de que tiene acceso a la copia de seguridad más reciente antes de seguir adelante.

Puede utilizar estos enlaces rápidos si desea omitir un método concreto:

Tutorial en vídeo

Subscribe to WPBeginner

Si prefiere instrucciones escritas, siga leyendo.

Método 1: Corregir el error 403 Forbidden causado por un plugin de WordPress

Lo primero que debe hacer es comprobar si uno de sus plugins de WordPress está causando el error 403 Forbidden. Para ello, debe desactivar temporalmente todos los plugins de WordPress. Esto incluye cualquier plugin de seguridad que haya instalado en su sitio.

Si esto resuelve su problema, entonces esto significa que uno de los plugins en su sitio web estaba causando este error.

Puedes averiguar qué plugin estaba causando el error activando todos tus plugins de uno en uno hasta que reproduzcas el error 403 Prohibido. Entonces, tendrás que borrar el plugin problemático y buscar una alternativa o contactar con los desarrolladores para dar soporte.

Si este método no funciona, siga leyendo.

Método 2: Corrección del error 403 Forbidden causado por un archivo .htaccess corrupto

A menudo, el error 403 Forbidden es causado por un archivo .htaccess corrupto en su sitio WordPress. La buena noticia es que corregir este archivo es bastante fácil.

En primer lugar, debe conectarse a su sitio web mediante un cliente FTP como FileZilla o la aplicación Administrador de archivos de cPanel.

A continuación, busque el archivo .htaccess en la carpeta raíz de su sitio WordPress. Consulta esta guía si no encuentras el archivo.htaccess en la carpeta de tu WordPress.

Deberá descargar el archivo .htaccess a su ordenador para tener una copia de seguridad del mismo. Después, simplemente borre el archivo de su servidor. No te preocupes, tu WordPress seguirá funcionando.

Delete .htaccess file from your WordPress site

Ahora, intente acceder a su sitio web. Si el error 403 prohibido se resuelve, entonces esto significa que su archivo .htaccess estaba dañado.

Puede generar un nuevo archivo .htaccess accediendo a su área de administrador de WordPress y yendo a la página Ajustes ” Enlaces permanentes.

Regenerating .htaccess file in WordPress

Basta con hacer clic en el botón “Guardar cambios” situado en la parte inferior de la página, y WordPress generará un nuevo archivo .htaccess.

Método 3: Corrección del error 403 Forbidden causado por los permisos de archivo en WordPress

Si las otras soluciones no han corregido el error 403 prohibido en su sitio, entonces la causa más probable son los permisos incorrectos del archivo.

Todos los archivos almacenados en su sitio web tienen permisos de archivo. Estos permisos de archivo controlan quién puede acceder a los archivos y carpetas de su sitio web WordPress.

Permisos de archivo incorrectos pueden causar el error 403 Prohibido. Hacen que tu servidor web piense que no tienes permiso para acceder a esos archivos.

Puedes pedir a tu proveedor de alojamiento WordPress que compruebe que tu sitio web tiene los permisos de archivo correctos. Algunos alojamientos son muy compatibles, así que no les importará y probablemente te lo corregirán.

Cambiar los permisos de archivo usted mismo puede tener graves consecuencias. Si no se siente seguro haciéndolo usted mismo, lo mejor es pedir ayuda a otro propietario de un sitio web WordPress o contratar a un profesional.

Sin embargo, si desea hacerlo usted mismo, a continuación le indicamos cómo comprobar los permisos de sus archivos.

Simplemente conéctese a su sitio WordPress utilizando un cliente FTP. Navegue hasta la carpeta raíz que contiene todos sus archivos de WordPress.

Checking file permissions

Haz clic para seleccionar una carpeta, haz clic con el botón derecho y, a continuación, selecciona “Permisos de archivo” en el menú.

Tu cliente FTP te mostrará un cuadro de diálogo de permisos de archivo como éste:

Changing file permissions using FTP

Todas las carpetas de su sitio WordPress deben tener un permiso de archivo de 744 o 755.

Mientras tanto, todos los archivos de su sitio WordPress deben tener un permiso de archivo de 644 o 640.

Puedes establecer el permiso de archivo de la carpeta raíz en 744 o 755. También tienes que marcar la casilla siguiente a “Recurse into subdirectories” y luego marcar la opción que dice “apply to directories only”.

Sólo tienes que hacer clic en el botón “Aceptar”. Tu cliente FTP empezará a establecer permisos para todos los subdirectorios de esa carpeta.

Una vez hecho esto, debes repetir el proceso para todos los archivos. Esta vez, utilizarás un permiso de archivo de 644 o 640, y no olvides seleccionar las opciones ‘Recurse into subdirectories’ y Apply to files only’.

Haga clic en el botón “Aceptar”, y su cliente FTP comenzará a establecer los permisos de archivo para todos los archivos seleccionados.

Intenta acceder a tu sitio web ahora y comprueba si el error 403 prohibido ha desaparecido. Ya está.

Esperamos que este artículo te haya ayudado a corregir el error 403 forbidden en WordPress. Puede que también quieras ver nuestros consejos de expertos y hacks para proteger tu área de administrador de WordPress y nuestro artículo sobre por qué usamos Sucuri para mejorar la seguridad de todos nuestros sitios WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

162 comentariosDeja una respuesta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. mohadese esmaeeli says

    Hello, good day. I appreciate your efforts in creating this content. The presence of a 403 error is often due to permission issues. I have encountered it multiple times, and most of the time, fixing permissions resolves the error. I’ve successfully resolved my site’s 403 error with the help of this guide before.

  3. Kevin says

    For my site it ended up being ModSecurity. I eliminated any robots.txt and .htaccess issues. I found the issue when looking at the apache log and then whitelisted the rule. All was fine after that . Took about 4 days to figure it all out.

  4. iri says

    Thanks for this information! It has been very helpful. I had this error in several pages with broken images (I think this happened after buying a larger hosting plan) and it seems the problem was a corrupted .htaccess file, but thanks to this info I solved it in one minute!

  5. Ayouba Seybou says

    Hello,
    i am getting the same error but in my case, i have access to my dashboard. the the problems begin when i click on some admin menu like page, update, setting.

    • WPBeginner Support says

      Our recommendations would be the same even if you still have access to your wp-admin area.

      Administrador

  6. Wendy Clash says

    Thank you so much. I had to restore my website and I got this error. The entire folder for my wordpress site dit not have the right permissions. I changed it and it worked. Thanks so much.

    • WPBeginner Support says

      Thank you for sharing that, if it gets to the point where disabling mod security is what you want to try, we would recommend most beginners reach out to their hosting provider instead to see if their host sees an error or something on their end that could be fixed.

      Administrador

    • WPBeginner Support says

      Reach out to your hosting provider for them to take a look and they should be able to help fix that issue.

      Administrador

  7. Suraj says

    I tried all the mentioned points. My site is still showing the same message as “”Your connection is not private” and “403 Forbidden”. Please help…

    • WPBeginner Support says

      If none of our recommendations are able to assist you, we would recommend reaching out to your hosting provider to ensure there are no issues on their end.

      Administrador

    • WPBeginner Support says

      There can be or sometimes the host may prevent the file permissions from being changed. If our guide did not help we would recommend reaching out to your hosting provider and they should be able to assist.

      Administrador

  8. Aditya PF says

    Hi, how to solve the 403 forbidden but only happens when try to publish or update post/pages? I have no problems when accessing website or upload media

    • WPBeginner Support says

      Reach out to your hosting provider for them to take a look and they should be able to assist and fix that issue.

      Administrador

    • WPBeginner Support says

      If none of these recommendations helped, we would recommend reaching out to your hosting provider and they can normally assist

      Administrador

  9. Alan Wright says

    Followed up all tips, thank you. The htaccess one was closest: after removing the image Hotlinks rule within, my site is finally back to normal!

  10. Alabi says

    I never knw .htaccess get corrupt. Tip number 2 fixed it quickly but I was unable to generate the .htaccess. So I downloaded, delete and re-upload the .htaccess and it worked super fine. Thank you, WPBeg

  11. Humayan Kabir says

    Hi,

    Suddenly my website is showing a message “This site can’t be reached” .Can anybody help me ? i am unable to fix it for last 7days.

    Thanks,

    • WPBeginner Support says

      Have you reached out to your hosting provider? They can normally let you know any errors they can find on your site.

      Administrador

  12. Essau says

    I’m glad I read the post and tried everything mentioned here but it did not work. However, the user comments were resourceful. I tried step by step all the suggestions people have mentioned and I found that MOD SECURITY, just as others have mentioned, is the main culprit.

    Since I’ running a VPS, I disabled it from my control panel and did the adjustments I wanted on my site and it worked like a charm!.

  13. N. iru says

    After I installed wordpress. My webpage is still on 403 error and when I go to /wp-admin a 404 error appears. Basically wp-admin is missing. How should I fix this?

  14. Adam says

    Hi,

    My images don’t appear at all when I view my site on different web browsers.

    What could be causing this?

    cheers

  15. Nukri Tusishvili says

    I have tried all the things, checked stackoverflow, google, than tried these paths and none of them work. The last thing i did i reinstalled wordpress from dashboard and it worked. 403 forbidden disappeared…

    Thank you anyway for this article. hope my exp will help others also :)

    • WPBeginner Support says

      Should the problem continue with yoast, if you reach out to the plugin’s support they may be able to update and fix the problem :)

      Administrador

  16. David Kempton says

    File uploads with illegal characters (e.g. apostrophe in my recent cases) cause a 403 error. I have seen this with file submissions in Gravity and WPForms.

  17. Jan says

    I have started a new website for an individual through WP. When old website is pulled up, it gives a “Forbidden- access denied on this server”. I have tried many things through WP to fix the problem, but since it was that way before, would it be something from the last webhost? I have changed the nameservers on the domain site to the new host site I’m using. The new host has it as primary domain, but says domain is locked. Would unlocking the domain name make a difference? Any help would be MUCH APPRECIATED!!

    • WPBeginner Support says

      If the domain is locked then your old hosting provider normally may not be accepting the nameserver edits. If you reach out to where the domain is currently hosted they should be able to ensure the domain is pointing correctly.

      Administrador

  18. Stephanie says

    “Failed to load resource: the server responded with a status of 403 (Forbidden) async-upload.php:1” is the console error log I am seeing when I try to upload an image to media in the dashboard. It says “http error” when I try upload any files. And they’re only a few kb, also the upload size has been increased already.

    Any suggestions?!

    • WPBeginner Support says

      Reach out to your hosting provider and let them know about the issue and they should be able to assist

      Administrador

  19. liam says

    Hiya Folks, I worked through everything and nothing seemed to fix my problem then I had a spark of genius. If you use Cpanel then check under the Security option for Hotlink protect. You may have it turned on. Just add your full site website web address to it and click submit it should work. It did for me

  20. Luthfunnahar Hussain says

    why i am getting this problem –
    Failed to load resource: the server responded with a status of 403 (Forbidden)
    wp-content/themes/health/assets/slabText/css/slabtext.css?ver=5.0.3

    • WPBeginner Support says

      You would want to take a look at step 3 in the article for an error like that with your theme

      Administrador

  21. Wellington Lübke says

    Works for me after i disabled ModSecurity on Cpanel. If you don’t have access to this option, contact your host provider and say that you want to disable this option.
    Hope that works for y’all!

  22. twinkle says

    Hi, Please help.. I got this error when i tried to log in my wp-admin ..

    HTTP Error 403 – Forbidden
    The Web server is configured to not list the contents of this directory or you do not have enough permissions to access the resource

    Error. Page cannot be displayed. Please contact your service provider for more details. (14)

    Thanks in advance

  23. asim says

    When i was putting my second addon doamin i select blog in directory (optional). I think it should be empty now i can’t see my website when i enter sitename .com its says error. i can access my wp admin as sitename .com/blog/wp-admin. i want to remove blog from it. My first website on this hosting is working fine with wordpress, Godaddy. I don’t know what to do please some one help me???

  24. ItsMisterDavid says

    Thanks guys.
    You saved me a whole lot.
    I just discovered my Public Permissions were not readable and Executable.

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.