MovieLib - Your movie database on web
@Regss has insert HTTP authentication since version 1.4.2 - thanks for your great work.
HTTP authentication give you much more secure for your movielib website because HTTP auth is at a higher level than the standard movielib-user-password.
When you don't want that everybody around the world have access to movielib you have to use HTTP auth.

Now you have a problem when you want to use banner too, because you need a username and a password.
Normally you can access banner.jpg by using the follow link: "http://username:[email protected]_movielib_website.tld/cache/banner.jpg", but most in cases forums don't show the picture.

For HTTP auth you need two files in your movielib folder:
.htaccess and

For access to banner.jpg you have to insert in .htaccess after movielib-lines:
existing lines above
# ------------------------------

# More secure for Movielib and access for individual user
  AuthName "Secure Website"
  AuthType Basic
  AuthUserFile >>insert here your path starting from root-path<< e.g. /var/www/html/movielib/.htpasswd
  Require valid-user
# ------------------------------

# access to /cache/banner.jpg, despite AUTH
    SetEnvIf Request_URI "cache/banner\.jpg"  allow
    Order allow,deny
    Allow from env=allow
    Satisfy any

# Deny access to important files
<FilesMatch "(\.htaccess|\.htpasswd|config\.php|db\.php|function\.php)">
  Order deny,allow
  Deny from all
# ------------------------------

# Prevent Directory Listings
Options -Indexes
# ------------------------------

In .htpasswd you have to insert one line per user like this:

Attention username and password are case-sensitive.
Password not in clear letter instead you have to encypt the password with md5 hash.
You can generate the password hash with some online tools, I use this free offline tool from Gaijin Password Generator

Now you can use banner normally like this: "http://your_movielib_website.tld/cache/banner.jpg"
Thread Rating:
  • 8 Vote(s) - 4.63 Average

Messages In This Thread
RE: MovieLib - Your movie database on web - by Nepomuk - 2015-11-20, 13:14
Last Post - by Jeffreywat - 2017-09-03, 14:02

Logout Mark Read Team Forum Stats Members Help
MovieLib - Your movie database on web4.638