PDA

View Full Version : HTACCESS hack


weezle
08-22-2001, 05:28 AM
HTACCESS hack.. that allow Members to use the LOGIN info..?????

mjames
08-22-2001, 05:51 PM
What? Be more specific.

Admin
08-22-2001, 05:57 PM
He wants to use the login info from the MySQL for a folder that is protected with .htaccess.

weezle
08-22-2001, 06:20 PM
heres what im looking for:

htaccess hack for vbb 2
Simple htaccess by kennydies [global user and pass mode]

edit your global.php and ABOVE
// ###################### Start init #######################

add this code:

code:--------------------------------------------------------------------------------

// Simple htaccess by kennydies [global user and pass mode] (made on 28-5-2001)

if ( !isset( $PHP_AUTH_USER ) ) {
header('WWW-Authenticate: Basic realm="Htaccess login system"');
header('HTTP/1.0 401 Unauthorized');
echo "Sorry, we don't allow gayness on our board\n";
exit;
} else if ( isset( $PHP_AUTH_USER ) ) {
if ( $PHP_AUTH_USER != "mofo" or $PHP_AUTH_PW != "spankme" ) { // username and pass required
header('WWW-Authenticate: Basic realm="Htaccess login system"');
header('HTTP/1.0 401 Unauthorized');
echo "Sorry, we don't allow gayness on our board\n";
exit;
}
}

// Simple htaccess by kennydies [global user and pass mode] (made on 28-5-2001)--------------------------------------------------------------------------------

Change the username/pass in $PHP_AUTH_USER != "mofo" or $PHP_AUTH_PW != "spankme" into what you want.

Why did I make this code when you can just use a simple .htaccess file? Cuzz my board was on a server that doesn't support .htaccess and with this code, htaccess does work.

THIS IS WHAT I NEED

later today I will post the code so username/password are the same as the login on your vbb (i'm at work now and the code is on my home pc)

THIS IS WHAT I NEED

will anyone make this hack?

SpankMe
08-23-2001, 10:33 PM
I use the vBulletin logins for access to my porn sites. Check out an Apache module called mod_auth_mysql.

Once setup in Apache, all I needed to do was create a new group in my forums (http://forums.myip.org) and add people to it when I want to give them access.


HEY, who you calling gay :(

joecrow
08-24-2001, 01:53 PM
could someone make this hack it would be kool.

tweak
08-25-2001, 10:35 PM
It made... But they wont give it out.. :( dunno why we cant get it ?

JoshFink
08-25-2001, 10:54 PM
What you pay for is the vBulletin product. Nothing else is guaranteed. The hacks aren't supported in any way by Jelsoft.

You should feel lucky that this is such a great community and people provide these hacks.

Josh

Barret
10-09-2002, 02:02 AM
But where would you put that to use on the whole board?

Erwin
10-09-2002, 02:07 AM
This thread is over a year old... so I wouldn't use this hack in the first place. But if you read the post carefully, it says to edit the global.php file. And the .htacess file, if you want to use that, goes into your root directory or forum directory depending on what you want it to do.

Barret
10-11-2002, 02:22 AM
Yep that it is but I found a way to make it work anyway and just for the admin cp.