Pages: [1]   Go Down
Send this topic | Print
Author Topic: password protecting one of my webpages - is it possible?  (Read 501 times)
vonweizer
Member
*
Offline Offline

Posts: 11


WWW
« on: September 24, 2008, 03:50:00 AM »

Hi! Anyone know if it's possible to password protect one of my webpages? The idea is making a link to our price list in the site (it's in .pdf) but only customers with a username and password could see it.

Any ideas?

Thanks
Logged
inp o҉rtb
The Gangsta
Global Moderator
Official 110mb Guru
*****
Online Online

Posts: 15377


experimental theologian


WWW
« Reply #1 on: September 24, 2008, 03:52:46 AM »

It should be possible with the help of PHP.
Logged

Hi! I’m a signature virus! Add me to your signature to help me spread.
spam me: ispamspot@gmail.com

blog | my work @ deviantART | Imagine-ng image editor
greenworldresourceexchange
Member
*
Offline Offline

Posts: 38


WWW
« Reply #2 on: September 24, 2008, 04:08:44 AM »

This was recommended to me from someone on these boards, sorry I forgot who!

Anyway I'm using it. It works.

http://www.zubrag.com/scripts/password-protect.php
Logged
vonweizer
Member
*
Offline Offline

Posts: 11


WWW
« Reply #3 on: September 24, 2008, 05:22:24 AM »

Hi greenworldresourceexchange

I installed the script looks pretty good and simple but I couldn't get working. I followed the instructions exactly but the pages I have 'protected' load without asking for password. I noticed on their support site two other guys had the same problem but never got an answer. I thinking hte only thing that could be wrong is the code they gave me to put in my pages, the address to the 110mb server looks a bit odd:

<?php include("/www/110mb.com/v/o/n/w/e/i/z/e/vonweizer/htdocs/password_protect.php"); ?>
Logged
thefluffball
Knock. Knock.
Loyal 110MB Member
*******
Offline Offline

Posts: 2285


I came, I saw, I strutted.


WWW
« Reply #4 on: September 24, 2008, 05:32:53 AM »

I recommended it. Duh

No, that is the correct code. It's an absolute server path.
Type that into your browser and see if it gives you the password protect page.

As you can see, this is the password protect page: http://vonweizer.110mb.com/password_protect.php

Make sure the page you want to protect has the .php extension, it must be a .php page to work. wink
Just to make sure, your not adding the code to your pdf document are you?
To protect the pdf completely you must have .htaccess , otherwise somebody can just type the address to the pdf in their browser directly.

Edit: Your trying to protect your index, but it has a .html extension and not a .php extension. grin
« Last Edit: September 24, 2008, 05:34:27 AM by thefluffball » Logged

vonweizer
Member
*
Offline Offline

Posts: 11


WWW
« Reply #5 on: September 24, 2008, 05:36:29 AM »

thanks! I was adding the code to a html page... So changed the page to php and all works now Smiley!
« Last Edit: September 24, 2008, 05:47:41 AM by vonweizer » Logged
thefluffball
Knock. Knock.
Loyal 110MB Member
*******
Offline Offline

Posts: 2285


I came, I saw, I strutted.


WWW
« Reply #6 on: September 24, 2008, 05:52:52 AM »

Great! However your page is still .html Duh
Logged

TDSii
Best warez site!!
Loyal 110MB Member
*******
Offline Offline

Posts: 2056


..:: skdown.net ::..


WWW
« Reply #7 on: September 24, 2008, 09:08:47 AM »

WOW thx for the script man, i shall try it!
Logged


Pages: [1]   Go Up
Send this topic | Print
Jump to: