myeti/pictobox/master/public/.htaccess - Htaccess File

myeti/pictobox/master/public/.htaccess

Options -Indexes

RewriteEngine on

# deny hot link
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?yourdomain.tld [NC]
#RewriteRule .*/cache/.*.(jpg|jpeg)$ - [NC,F,L]

# direct access, redirect to login
RewriteCond %{HTTP_COOKIE} !2nUNboXgKuCr4cn4flvD3YrmodNb1=85MS4wx [NC]
RewriteRule (.*/cache/.*.(jpg|jpeg))$ /login?from=/$1 [L,R=302]

# forward all request to front controller
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_COOKIE, HTTP_REFERER, REQUEST_FILENAME

Comments

Apache