Argh....website mastermind help please! new info....

Messages
3,962
Edit My Images
Yes
Right long story short, I need a customer log in on my website where they can view their pictures. It is only a temporary measure to the point of I can get away with just having a 'customer log in' button on the site at thats it, no fancy work etc.

I have no idea how easy this would be to set up?

Any links or advice very welcome!
 
Last edited:
Tried it and doesnt seem to work, just get the access denied page but no login box...?
 
2 diff answers above.. which have you tried?

The first one....done the codes, seems to work to the deny bit but I cant get the access file to show the pop up password box etc.

Cant try the second as I cant find an option lol
 
so you used a htaccess file?

you have to make sure the path to the password file is correct.. you should ahve two files. the password one containing the password in encrypted format.. presumably you used a password generator?
 
Last edited:
Also make sure your test editor is not adding an extension to the filename when saving it, ie .txt
 
have you set the correct path to your password file and have an exncrypted password in it?
 
have you set the correct path to your password file and have an exncrypted password in it?

I have the following.

under my site name/folder/is the .htpasswd file containing my encripted code.

Under a folder I wanted protected is the following code

AuthUserFile /adamrobsonphotography.co.uk/web/test/.htpasswd
AuthType Basic
AuthName "test2"
Require valid-user
 
The path is wrong, it should be /public_html/test2/.htpasswd or whatever your document root is

You have put a url in their
 
The path is wrong, it should be /public_html/test2/.htpasswd or whatever your document root is

You have put a url in their

some shared servers use the url as a folder name

deffo change to test2 though :)
 
The path is wrong, it should be /public_html/test2/.htpasswd or whatever your document root is

You have put a url in their

confused now.

all my files are stored under

adamrobsonphotography/web/index.html is my home page.

If I want to see an image it would be

adamrobsonphotography/images/fly.jpg for example in the url, which is the same as my file name on my domain?

isnt it...arghhh..
 
So is adamrobsonphotography the document root or is there a htdocs or public_html below it?

if so the path should be /{document root - if any}/adamrobsonphotography/web/test/.htpasswd

I think :bang: confusing me now

or simpler answer get rid of the .co.uk
 
Last edited:
right... blank page.. one line of code

<?php echo(phpinfo()) ?>

save that as test.php and upload to your test folder and then go to it.. ie /test2/test.php

(not test.php.txt)

loads of info will appear on screen.. third box from bottom (i think?) will ahve your path Look for ENVIROMENT box then SCRIPT FILENAME .. that will show the path you need
 
Last edited:
So is adamrobsonphotography the document root or is there a htdocs or public_html below it?

if so the path should be /{document root - if any}/adamrobsonphotography/web/test/.htpasswd

I think :bang: confusing me now

under my control panel of the domain adamrobsonphotography is the first bit, if I click a folder for e.g. 'images' it will then say

adamrobsonphotography/image and have a list of what ever is in that folder.

?
 
says....

/content/Hosting/a/d/www.adamrobsonphotography.co.uk/web/test.php

sound right?
 
if both files are right and the paths right then it should work... without hands on.. theres not a lot more i can say :(
 
if both files are right and the paths right then it should work... without hands on.. theres not a lot more i can say :(

Really appreciate your time for this, looks like I will have to give them a call tomorrow :'(
 
Right,

found a script on my server but it doesnt seem to work propery.

if I go to

adamrobsonphotography.co.uk/login/htadmin.pl

It will pop up with a box to log in with any of the users I have set. But it doesnt seem to protect the folder it is in, only the admin htadmin.pl file

wtf? I can still access any image in there
 
Back
Top