![]() |
Quote:
|
Hey guys,
I just *barely* installed my copy of vb last night, so I have a few complete newbie questions for you guys. First, the modification has this: PHP Code:
PHP Code:
Finally, is it permissible to create a second "test" board that only I have access to so I can test mods before making them live? It's not your competence in creating the mods that concerns me, only my own ability to impliment them. ;) Thanks! |
Quote:
Quote:
Quote:
Quote:
|
[quote]yes, you can have one, but it must be not available to the public (ie: closed) and it must be named "vbtest," and located on the same server, etc..[/quote
I can't imagine doing it any other way. :) Thanks man, just what I wanted to know! I've done extensive hacks on a phpbb before this, but on that software it's just follow the instructions and replace code. I don't think I've ever had to do anything in the control panel. |
Well, I just tested this hack using two different proxies. The first time, it detected the proxy but got the real IP address wrong, and the second time it didn't detect it at all. Any suggestions?
It does seem to be working for some proxies. Install clicked; thanks. Charles |
charlesk ,
that's completely normal anonymous do not pass the variables this hack uses ... that's why it is called "anonymous" for example an anonymous proxy won't pass "HTTP_X_FORWARDED_FOR" <<-- you'll see the anonymous proxy ip here instead. anyway i'm having a problem with this hack it's operation works fine but if i click the image to get the ipadress vbulletin tells me "couldn't find the phrase "thread_displayproxyip" althrough the phrase is there and i'm sure i didn't make any typos while editing postings.php (phrasetype GLOBAL) PHP Code:
|
Delphi: you need to make the phrase a Front End Error phrase rather than a global. That happened to me as well, I hope Paul will fix the instructions.
As for the anon proxy issue... it doesn't seem to even work for AOL proxies, which is unfortunate. c |
Quote:
|
Quote:
|
hmmm strange now i'm getting the global variables names as result
IPADDRESS and PROXYIP looks like it passed or something i can't find anything wrong with it :rolleyes: |
Are you sure you have correctly done the edit to init.php and uploaded it ? - this is where those constants are defined.
|
Quote:
rgds |
So what if a regular user sends the X-Forwarded for header, specifying someone else's IP? Can the user avoid bans/etc?
|
Quote:
|
Is there any way to ignore reserved private IP ranges? I have several users who show up has having 192.168.x.x or 10.0.x.x as their "real IP".
Great mod, btw.. :) |
Quote:
|
Quote:
|
Well I haven't tested it, but this should work ;
Find; PHP Code:
PHP Code:
Edit: Updated for full 172 range and 127 range as per posts below. |
That seemed to do the trick. Thank you kindly.
Any chance you'll be adding that to your next release? |
PS - the range is 172.16.0.0 through 172.31.255.255.. I'm a regex moron, how would I add that range?
preg_match("#^(10|172\.[16-31]|192\.168)\.#", $proxyip)) ? |
Quote:
|
Quote:
I appreciate it. :) |
Try this;
PHP Code:
|
That seems to work.. I'll keep an eye on it and let you know. Thanks again!
|
I was just coming here to post about this same issue. I just had an issue with 127.0.0.1 and also some 10.X.X.X numbers. I do not think the above handles 127's. Somtimes hacks just work too good.
|
Quote:
I have no reason to exclude those addresses, so my hack doesn't. If you don't want them then use the extra code posted above, you can add 127.x.x.x to it easily enough as well. |
Hi Paul...Thanks for the reply. I am sorry to say I am not advanced enough to understand how to add in the 127 range. Can you please be so kind to advise.
Thank you in advance. (Currently dealing with a problem user.) |
Quote:
|
Paul...Here is something for you to REALLY help in this case...
http://www.tcpipguide.com/free/t_IPR...ddresses-3.htm It lists all the private IP's that could be used. (Not many) Thank you for the updates!!!! BTW...I am gussing that if the code finds any of these private IPs, it will just use the reported proxy IP like it did not find anything. (Thus we can choose to block the proxy if need be.) BTW...Now running on TiVo Community (http://www.tivocommunity.com) and will be at AVS Forum after I convert that. (http://www.avsforum.com) |
Thanks - the only one really relevant in that list that was missing was the DHCP auto range of 169.254.x.x - I have added that.
BTW - you just reminded me to check my old Tivo userid out - I joined in 2002 ! |
Great. I updated the code.
Am I right in what I mentioned above? "I am gussing that if the code finds any of these private IPs, it will just use the reported proxy IP like it did not find anything. (Thus we can choose to block the proxy if need be.)" |
Quote:
The hack code has been updated to include this [optional] change. |
Thanks for the help in this. It should help.
|
i got this when i tried to run the SQL query
PHP Code:
why??? can you help? |
ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;
You forgot to add the semi-colon to the end of the query statement which closes the statement and tells MySQL to execute the statement. |
Quote:
i did add it : just like this Step 1. Run the following SQL code; ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress; |
Quote:
people, you are both wrong see the error MySQL is telling you #1146 - Table 'smoralo_forum.post' doesn't exist the korrect query becomes Code:
ALTER TABLE smoralo_forum_post ADD proxyip VARCHAR(50) NOT NULL AFTER ipaddress; |
Do you have a table called post? Are you running the query within vBulletin or phpMyAdmin? You can manually add the proxyip field manually within the post table using phpMyAdmin.
|
Quote:
SQL-query: ALTER TABLE smoralo_forum_post ADD proxyip VARCHAR( 50 ) NOT NULL AFTER ipaddress MySQL said: #1146 - Table 'smoralo_forum.smoralo_forum_post' doesn't exist |
Quote:
theres a smora_post and smora_forum. wich one do i need to do it in? all my tables are smora_something. |
All times are GMT. The time now is 09:54 PM. |
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:
|