Загрузка...

How to Block Access to wp-content / uploads non images files using Htaccess in WordPress | Security

In this wordpress tutorial for beginners how to protect wp content / uploads folder access from non image file using .htaccess file in wordpress website to secure. So by adding code you can prevent or restrict access to non-image file to upload directory and increase your site security and also prevent or stop attack on site.

---------------------------------------------
*** Add this Code in htaccess File:
-------------------------------------------------------
*** ADD ANGLE BRACKETS in this line " Directory "/path/to/your/wordpress/wp-content/uploads" "

** Also add your path in directory section.

** Add ANGLE BRACKES in this line " FilesMatch "\.(php|pl|py|cgi|sh|sql)$" "
--------------------------------------------------

Directory "/path/to/your/wordpress/wp-content/uploads"
FilesMatch "\.(php|pl|py|cgi|sh|sql)$"
Order Allow,Deny
Deny from all
/FilesMatch
/Directory

--------------------------------------------------
** Add ANGLE BRACKETS in this Line " /FilesMatch "
** Add ANGLE BRACKETS in this Line " /Directory "
--------------------------------------------------

Join us in this tutorial to make your WordPress site more secure. By implementing these security steps, you'll be taking a proactive step in safeguarding your online presence. Subscribe to our channel for more tutorials and stay updated on the latest in web security.

#security #uploads #nonimage #image #wordpresssecurity #htaccess #wordpress

Видео How to Block Access to wp-content / uploads non images files using Htaccess in WordPress | Security канала WebTask With Hassan
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять