Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
I want to add a password so not everyone can access the portraits section but i want it to come up with a message saying email me for the password etc... how do i do this?
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
something called htaccess could be your friend
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Would've been easy to do that on BWF
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
there is an option on my current host to protect certain domains but i tried that it it still gives me access to the section
|
noshua
Member
Registered: 19th Nov 08
User status: Offline
|
which host?
edit; ctrl+f5?
[Edited on 13-05-2009 by noshua]
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
You could always use a CGI/ASP script depending what the server is running.
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
host - fractix and yeah i did refresh it even tried a new explorer box.
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
Yes just .htaccess and .htpasswd.
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
say whaaaaaat
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Online
|
.htaccess is best - even if get a script to do it you would still not protect the images themselves from being viewed if someone knew the web addresses.
Speak to your ISP see if they support it and if so how you can go about listing the users/passes.
|
noshua
Member
Registered: 19th Nov 08
User status: Offline
|
If you can use htaccess, use this generator (as I'm guessing you won't know how to use htaccess);
http://www.webmaster-toolkit.com/htaccess-generator.shtml
|
noshua
Member
Registered: 19th Nov 08
User status: Offline
|
just had a nosey on fractix's website and at their control panel (from the demo)...
make a new folder on your domain called 'new'
so http://www.mattlindop-photography.com/new/ i'm guessing?
next go into your control panel and open up the 'website password protection' area
where it says 'directory name' type in 'new'
for the username and password enter 'test123' for both.
reply here once you've done it and i (or we) can test it
quick note, is the page your trying to password protect in the root (http://www.mattlindop-photography.com/) or in a folder after root? for example;
http://www.mattlindop-photography.com/new/page.html
because; looking at the control panel, you can only password protect a folder, rather than a file, in which case if you only want to protect a single file and not the whole folder - you'll need to use htaccess
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
I want to protect this section of the site
http://mattlindop-photography.com/galleries/portrait/gallery-port.htm
so if ill try it again and see if it works.
|
Matt L
Member
Registered: 17th Apr 06
User status: Offline
|
its worked cheers
when i tried it yesterday i protected
http://mattlindop-photography.com/galleries/portrait/gallery-port
and it wouldnt work but now i have protected
http://mattlindop-photography.com/galleries/portrait
and its worked
|
noshua
Member
Registered: 19th Nov 08
User status: Offline
|
you're welcome mate, yeah their password protection in the control panel is a bit shit - seems daft only allowing you to password protect a directory rather than a page.
|