![]() |
Add security to non VB pages and block user groups
OK, my first "hack"!
I created this because I want to have security and logins for my sites non VB pages but don't want two logins, one for the site and one for the forums. There are other hacks that do the same thing, but this one is different. 1. It creates a PHP session, which means when the user closes the browser they will have to login to the site again later. It doesn't access the VBulletin cookie at all. 2. The user is prompted to login on any page you include this on, once logged in they are taken to that page minus the security. 3. No modification to the VBulletin code. 4. Uses the VBulletin user table so any information in there can be used, like welcoming them on all pages with their login name or telling the user who they are loggin in as. 5. You can block poeple based on their VBulletin user group! That way only certain user groups can see the rest of your site. 6. RUNS ON WINDOWS 2000 AND IIS!!!!!! Let me know how you like it! |
I haven't installed it yet but I am looking to, thanks!
|
Screenshots, demo's, anything to show us why this hack is different than so many of the other security hacks?
:banana: |
Quote:
Variety is the spice of life. Maybe MT_100's code is just cleaner than the rest ... maybe his/hers is the one that works best with Microsoft web servers ... maybe it was created without harming any laboratory animals. Who knows! :D |
Nice:)
Satan |
I doubt it is cleaner, I'm certainly not a pro, but it works.
I saw a great hack for Apache on Unix/Linux with .htaccess that did the same thing and loved it, use it on one of my servers. I just wanted one that would work the same on IIS, so I made it and wanted to share it. I did forget that you need to put a file called connect.php in the same folder with membercheck.php with your server connection varioables in it, or hardcode them into membercheck.php. Later folks, enjoy. |
Quote:
The thing that irks me is how some people essentially spit in the face of generosity by expecting a coder to justify the worthiness of his contribution. People are here sharing their code, tricks and tips -- for free. Why look a gift horse in the mouth? ;) |
Thanks:D
|
Sorry for the comment earlier, until I actually looked at the code I didn't realize it was so simple enough it didn't need screenshots. I have a dull imagination when it comes to hacks that I'm usually not sure what they do before I install, so I tend to need some visuals.
|
Well, to install it.
1. Create a file called connect.php and define the connection variables. Here is an example: PHP Code:
3. Put an include for membercheck.php at the top of each page you want to secure. 4. Done! |
All times are GMT. The time now is 05:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|