Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

elsnare on "Autom. create htacces file in /uploads/ for new month"

$
0
0

Introduction:
I'm using a plugin that allows users to upload files to the server, into the standard /wp-content/uploads/year/month/ folder. Event thou I'm using a security check @ upload to disallow spec. file types, I would like to add another layer of secuiriy.

What do I want to do:
Write a script that will automatically place a htaccess file at the beginning of each month into the corresponding upload folder. The file will contain rules to prevent script execution, even if a file slips through the 1st check.

Any ideas how to get started with this? :)


Viewing all articles
Browse latest Browse all 8245

Trending Articles