corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Can i add a password onto a cerain section on my site?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Can i add a password onto a cerain section on my site?
Matt L
Member

Registered: 17th Apr 06
User status: Offline
13th May 09 at 09:12   View User's Profile U2U Member Reply With Quote

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
13th May 09 at 09:26   View User's Profile U2U Member Reply With Quote

something called htaccess could be your friend
Brett
Premium Member

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
13th May 09 at 10:02   View Garage View User's Profile U2U Member Reply With Quote

Would've been easy to do that on BWF
Matt L
Member

Registered: 17th Apr 06
User status: Offline
13th May 09 at 10:29   View User's Profile U2U Member Reply With Quote

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
13th May 09 at 10:32   View User's Profile U2U Member Reply With Quote

which host?

edit; ctrl+f5?

[Edited on 13-05-2009 by noshua]
Brett
Premium Member

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
13th May 09 at 10:35   View Garage View User's Profile U2U Member Reply With Quote

You could always use a CGI/ASP script depending what the server is running.
Matt L
Member

Registered: 17th Apr 06
User status: Offline
13th May 09 at 10:38   View User's Profile U2U Member Reply With Quote

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
13th May 09 at 12:49   View User's Profile U2U Member Reply With Quote

Yes just .htaccess and .htpasswd.
Matt L
Member

Registered: 17th Apr 06
User status: Offline
13th May 09 at 14:50   View User's Profile U2U Member Reply With Quote

say whaaaaaat
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
13th May 09 at 16:42   View Garage View User's Profile U2U Member Reply With Quote

.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
13th May 09 at 22:09   View User's Profile U2U Member Reply With Quote

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
13th May 09 at 22:15   View User's Profile U2U Member Reply With Quote

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
14th May 09 at 08:27   View User's Profile U2U Member Reply With Quote

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
14th May 09 at 08:29   View User's Profile U2U Member Reply With Quote

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
14th May 09 at 12:07   View User's Profile U2U Member Reply With Quote

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.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Website passwords dysonm Geek Day 0 231
10th Mar 04 at 14:55
by dysonm
 
Corsasport E-Mail Dean_W Geek Day 10 991
26th Mar 06 at 13:16
by Dean_W
 
Wireless security (Netgear) Fad Geek Day 6 821
22nd Aug 06 at 22:38
by Dom
 
PHP is this possible? Steve Geek Day 15 310
18th Nov 06 at 18:54
by Steve
 
windows live messenger (MSN) Jambo Geek Day 7 804
24th Jun 07 at 20:15
by Dav
 

Corsa Sport » Message Board » Off Day » Geek Day » Can i add a password onto a cerain section on my site? 29 database queries in 0.0147741 seconds