Basic caching php mirror for imgur
Go to file
Job Bautista 8885d64b40 fix video page 2021-06-25 18:58:42 +08:00
.gitignore imgur.kageurufu.net migration 2018-02-01 08:39:56 -08:00
.htaccess imgur.kageurufu.net migration 2018-02-01 08:39:56 -08:00
Readme.MD Initial upload 2013-02-05 08:55:03 -07:00
index.php fix video page 2021-06-25 18:58:42 +08:00

Readme.MD

A basic caching imgur mirror script in PHP

I would recommend using a script like this in your crontab to clear up old files

*/60 * * * * find ~/kageurufu.net/imgur/cache -type f -mtime +7 -delete

this will keep your cache from growing too big, if you are limited on space

put this on your web server, create a folder named "cache" (or edit the script to point elsewhere)

Set cache to be non-execute, in whatever webserver you use to prevent exploits being uploaded.

You can also put the cache outside your web directory to keep it more secure.