Welcome to Geeklog Wednesday, June 03 2020 @ 01:08 am EDT

Geeklog Forums

malware protection for upload folders


Status: offline

OMAL

Forum User
Regular Poster
Registered: 06/12/17
Posts: 102
I have two questions.

1. There are four folders under images /library/. File, Flash, Image and Media. What are they?

2. I'm going to put the following .htaccess file inside images/ and above four folders, which could prevent file execution when someone somehow uploads a malware inside this public folder. Is this a good idea?
<FilesMatch "\.(php|pl|py|jsp|asp|htm|shtml|sh|cgi.+)$">
ForceType text/plain
</FilesMatch>

Also, I make sure 644 permissions for files and 755 permissions for folders.
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1397
I believe those directories are used by the file manager and one of the advance editors that uses a plugin for images. The only thing that should be in their are image files so your .htaccess file should be fine. Your permissions are fine as well.
One of the Geeklog Core Developers.
 Quote

Status: offline

OMAL

Forum User
Regular Poster
Registered: 06/12/17
Posts: 102
Thanks.
 Quote

All times are EDT. The time is now 01:08 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content