Skip to content

Instantly share code, notes, and snippets.

View trongcong's full-sized avatar
🏠
Working from home

Nguyen Trong Cong trongcong

🏠
Working from home
View GitHub Profile
@trongcong
trongcong / .htaccess
Last active January 22, 2019 15:35
Wordpress login to download uploaded files | Protect uploaded files with login | Edit by trongcong
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L]
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:[email protected]
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*