vBulletin Modifications

.htaccess

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 03-20-2006, 05:10 PM   #11
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

Quote:
Originally Posted by Deaths
Just google ".htaccess howto" and ".htpasswd howto" and you'll find what you need.
hmm but it still doesn't work,
I tried it, the screen comes up but it says: 401

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required

you know the crap..

in my htaccess file I've set this:

AuthName AxRestricted
AuthType Basic
AuthUserFile /forum/.htpasswd
Require valid-user

and in my htpasswd file this:

furious:$1$UEKhOrVC$F21Ihp9c5.TLZB1ei1H8j1

(tried it like this too:
AuthName AxRestricted
AuthType Basic
AuthUserFile /usr/export/www/vhosts/funnetwork/hosting/*(myhostname)*/forum/.htpasswd
Require valid-user

but then nothing shows up..
sb?

I've also tried another keyencryptor and even with a normal key
but nothing..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 03-21-2006, 02:14 PM   #12
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Did you put both the files in the same dir?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-21-2006, 04:18 PM   #13
Join Date: May 2004
TouchingVirus is on a distinguished road

Default

You could use a php file to list Directory contents, and in that PHP file you could use an authorization based on vB user/pass combinations, I believe i made one for vB3.0.x

I'd prefer to use Deaths method though..

.htaccess
You must first be a registered member to view any code.

Let vBulletin control the .htpasswd file, adding a user/pass when a new user registers (or is added in the admin CP) and removing the user/pass when they are deleted.

Of course, you'll need some code to encrypt the password for the user to htpasswd format but it's a peice of cake ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-21-2006, 04:23 PM   #14
Join Date: May 2004
TouchingVirus is on a distinguished road

Default

Quote:
Originally Posted by world32
hmm but it still doesn't work,
I tried it, the screen comes up but it says: 401

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required

you know the crap..

in my htaccess file I've set this:

AuthName AxRestricted
AuthType Basic
AuthUserFile /forum/.htpasswd
Require valid-user

and in my htpasswd file this:

furious:$1$UEKhOrVC$F21Ihp9c5.TLZB1ei1H8j1

(tried it like this too:
AuthName AxRestricted
AuthType Basic
AuthUserFile /usr/export/www/vhosts/funnetwork/hosting/*(myhostname)*/forum/.htpasswd
Require valid-user

but then nothing shows up..
sb?

I've also tried another keyencryptor and even with a normal key
but nothing..

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /user/home/www/directory/.htpasswd
require valid-user

Use a small "r" for require...

Also note that the AuthUserFile must be an Absolute Path e.g. ...

/dev/home/user/www/public_html/forum/mp3/.htpasswd

or

D:/webserver/apache/website/forum/mp3/.htpasswd




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-22-2006, 03:54 AM   #15
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

thanks big time!
it works (y)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-22-2006, 04:10 AM   #16
Ken Iovino
Founder
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Glad you got it all sorted out.
__________________
Earnersforum.com - Learn how to make money online! New Look!

Ken Iovino / vBHackers.com
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-22-2006, 01:59 PM   #17
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

Quote:
Originally Posted by LiveWire
Glad you got it all sorted out.
yes with the help of you guys, I can manage everything,
I really love this forum :classic: you guys are the best




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -3. The time now is 01:02 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)