The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I have a pet project to log all activity of a couple IP Hosts because of some issues I have been having... I have tools like the AEMultiple account detector and Multiple account registration detector in place and they have enabled me to handle new accounts but these trolls have resorted to browsing my site as guests and then e-mailing their nonsense.
So, I have been on a mission to identify these trolls and now it has just become kind of a fun technical challange to tighten up my website security and I want to release what I have done as a hack but I want to get one more thing added.... The following is done ONLY to visitors to my site that meet specific requirements (IE Usergroup = "0" AND Host = "AOL") but I can change those settings on the fly as necessary... ----------------------------------------------------------------- Here is my question, my logging program determines the location of the person on my site and outputs the location like this: /forums/showthread.php?t=19670 /forums/showthread.php?t=9356&page=2 /forums/search.php?searchid=35344 /forums/showpost.php?p=71629 /forums/showpost.php?p=71629&postcount=3 /forums/forumdisplay.php?f=49 /forums/member.php?u=3 What I need help understanding, even at a basic level (and I know this is not basic) is how can I create a series of conditionals to determine if the page is one of the following: PART 1 showthread.php?t= search.php?searchid= forumdisplay.php?f= /forums/member.php?u= And then get the numeric ID PART 2 19670 35344 49 3 ...so that I can then query the database based on that numeric ID to get the corresponding information as the functions_online.php file does using the function convert_ids_to_titles() STEP 3 Thread Title Search Term Forum Name Member Profile Looked at This will make reviewing my logs to find a troll with rather unusual interests to be quickly identified and with their IP and host being logged with this information is allows for corrective measures to be out into place. I know how to use the pregmatch to get the info from STEP 1 but I do not know how I can get the numeric value from STEP 2 and put that into a variable. I do know how to do STEP 3 however! So, can someone direct me to an online tutorial or just work up ONE example to get me started and I can then use my logs to work out how to do the rest... So, can someone help me do JUST This one? PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|