Welcome to Geeklog, Anonymous Tuesday, March 19 2024 @ 04:50 am EDT

Geeklog Forums

malware protection for upload folders


Status: offline

OMAL

Forum User
Regular Poster
Registered: 12/06/17
Posts: 107
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: 09/27/05
Posts: 1468
Location:Canada
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: 12/06/17
Posts: 107
Thanks.
 Quote

All times are EDT. The time is now 04:50 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