We protect the site from loading everything except pictures

If you are afraid that the user may download a malicious script or files with viruses, that can harm the site, then read a new lesson from my site. I recently found an interesting piece of code in the form of a filter, which can be added to the file functions.php. If you want to restrict download access to everyone but yourself, then you can put it in an array $users your login.

You can also add MIME types of files that are allowed to be used for uploading. Alternatively, you can add the following types:

Everything is working, I checked everything. If you want to see what types are allowed for you now, then read the article “Supported file types for upload” Good luck developing secure sites.


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal