vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Proxy ip to real ip conversion (https://vborg.vbsupport.ru/showthread.php?t=69295)

Zephyrus 09-15-2005 09:48 AM

Well, theres something I want to enquire about. The older posts, before I installed the proxy to real ip hack, is there anyway to make them detect the proxy and change it into the real ip? Because I've gotten the hack to work, and it detects perfectly, but only new posts after the installation were detected, older posts will still show the proxies.

Paul M 09-15-2005 04:41 PM

Quote:

Originally Posted by ZephNeo
Well, theres something I want to enquire about. The older posts, before I installed the proxy to real ip hack, is there anyway to make them detect the proxy and change it into the real ip? Because I've gotten the hack to work, and it detects perfectly, but only new posts after the installation were detected, older posts will still show the proxies.

No, the ip can only be detected at the time, not after the event.

bhxtyrant 09-27-2005 01:39 PM

Hey guys,I am majorly interested in this hack as i have had problems with spammers using the proxy trick to bypass bans.Can anyone confirm that this hack will work with vB 3.0.7? thanks alot :)

Abe1 09-27-2005 02:01 PM

Quote:

Originally Posted by bhxtyrant
Hey guys,I am majorly interested in this hack as i have had problems with spammers using the proxy trick to bypass bans.Can anyone confirm that this hack will work with vB 3.0.7? thanks alot :)

I used it and it worked.

bhxtyrant 09-30-2005 11:07 AM

Thanks for the reply.I have one question.I am about to install this mod on my forums but when reading the instructions it's fairly vague so just wanted to make sure of something.

Quote:

Step 1.

Run the following SQL code;

ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;

(Note: if you use table prefixes then remember to change "post" to the correct table name).


Step 2.

Add the following phrase "thread_displayproxyip" (as a Front End Error Phrase, not a Global Phrase) ;

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]
Step 2 is also something i have to add to MYSQL?or is it something i have to add to one of vB's templates?I've used PHPmyadmin pleanty of times but i'm not 100% fluent with it.so just don't want to make any mistakes :)

MickDoneDee 09-30-2005 01:34 PM

Quote:

Originally Posted by bhxtyrant
Step 2 is also something i have to add to MYSQL?or is it something i have to add to one of vB's templates?I've used PHPmyadmin pleanty of times but i'm not 100% fluent with it.so just don't want to make any mistakes :)

Go to your Phrase Manager in the Admin contol panel. In the Phrase Manager select Phrase Type: Front-End Redirect Messages. Click Add New Phrase.
Paste thread_displayproxyip in the Varname text box.

Paste:

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]

in the Text text box. Click Save.

bhxtyrant 09-30-2005 01:48 PM

Ah ok,thanks alot for the explanation MickDoneDee :)

osariase 09-30-2005 03:21 PM

ok I have a problem serious one nobody can open or respond to a thread on the site everytime u click on post or reply u get this error message below:

Parse error: parse error, unexpected $ in /home/naijawor/public_html/includes/functions_newpost.php on line 1268

can someone please help thanks

Paul M 09-30-2005 03:27 PM

You have made a mistake in either step 4 or step 5.

Start with an unhacked copy of functions_newpost and redo those steps.

osariase 09-30-2005 03:39 PM

that was quick response thanks man i'm checking that now I will let you know please stand by, I appreciate it

osariase 09-30-2005 04:03 PM

Ok paul that seem to have fixed the problem and after redoing the steps i didnt get any error messages. So now my next question is how do I test it?

thanks for supporting this

Paul M 09-30-2005 05:59 PM

Quote:

Originally Posted by osariase
Ok paul that seem to have fixed the problem and after redoing the steps i didnt get any error messages. So now my next question is how do I test it?

thanks for supporting this

You click on install, then provide me a test login - and I post for you - my isp (ntl) use proxy servers.

osariase 09-30-2005 08:25 PM

well paul,
I am sorry to have given false info, after I did that I didnt check to see if I can post. my user's have been trying to post all day and they couldnt I just found out so I removed the old functions_newpost.php and put a fresh one there and it fixed it. if it is possible can u please give me the codes again i mean the one that have worked for you. I run vb3 3.07

thanks

osariase 09-30-2005 08:46 PM

ok below is the error message I or members of my forum gets when the click on submit reply

Database error in vBulletin 3.0.7:

Invalid SQL:
INSERT INTO nwvb3post
(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
showsignature, ipaddress, proxyip, iconid, visible, attach, useragent, altip)
VALUES
(104, 1576, 'Re: Comebacks and Insults for Women.',
'Teckno', 1, 1128116581,
'this is a test', 1, 1,
'xx.xxx.xxx.xx','', 0, 1, 0,
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)', 'xx.xxx.xxx.xx')

mysql error: Unknown column 'useragent' in 'field list'

mysql error number: 1054


Can u please tell me what is going on thanks

Paul M 09-30-2005 09:17 PM

You have modified the sql in functions_newpost to insert a field called 'useragent' in each post - there is no such field in the standard post table. There is also no such field in this hack - so it's obviously some other hack you have installed.

Paul M 09-30-2005 09:18 PM

Quote:

Originally Posted by osariase
if it is possible can u please give me the codes again i mean the one that have worked for you. I run vb3 3.07

Sorry, I don't understand what you are asking, what codes ?

osariase 09-30-2005 11:33 PM

Sorry to bother you again PaulM,
I went and did it again, now I get this error message below

Parse error: parse error, unexpected T_ELSE in /home/naijawor/public_html/includes/init.php on line 283

So i checked the line 283 it is an else statement like this below,
}
else
{

but when I comment this line out I dont that above error is it supposed to be like this? or is there something i'm doing wrong, please assist thanks

Paul M 10-01-2005 09:42 AM

Well then I guess you need to check/redo the changes in this file (step 7).

bhxtyrant 10-03-2005 01:46 AM

Hey guys,I just installed this mod and seem to be having what looks like some issues.

After installing i tryed purposly using a proxy IP address to see how well the mod works.It detected the proxy but doesnt seem to work.I can not see my real IP.I also got a freind to give it a try and i still could only see there proxy IP.I also notice the little ipp.gif icon doesnt show up.Is this normal?or am i maissing something :(

Im using vB 3.0.7

Paul M 10-03-2005 08:41 AM

Quite simply, it's not detecting the proxy you are using, what makes you think it is ?

JFYI, Proxy servers can only be detected if they pass on certain http variables, many do not.

bhxtyrant 10-03-2005 01:50 PM

Ah ok,I was under the impression that when ever someone using a proxy server would view the forums and post the ipp icon would appear to let you know.Thanks for the informationthough.So do you know of any free Proxy that does pass the required http variables so i can test the mos to make sure it's working correctly :)?

Paul M 10-03-2005 04:30 PM

Sorry, I don't.

If you supply me a username/password/url for your forum I will post a test post, my isp uses proxies that do pass on the client ip.

vbcia 10-08-2005 02:03 AM

How would I go about uninstalling this? It's not a bad hack, it's just that I seem to be having issues with some of my AOL users. I'm not blaming this hack at all, but I'm just going to uninstall anything I can to see what fixes the issues.

Paul M 10-08-2005 05:21 AM

Quote:

Originally Posted by vbcia
How would I go about uninstalling this? It's not a bad hack, it's just that I seem to be having issues with some of my AOL users. I'm not blaming this hack at all, but I'm just going to uninstall anything I can to see what fixes the issues.

Allthough it was tempting, there is nothing in this to upset AOLiens. Uninstall is the reverse of install - reverse the instructions.

MRGTB 11-27-2005 02:13 AM

I installed this, and then went to a well know FREE WEB PROXY and used it to posts on my site. Seems even this was able to bypass this hack here:

http://www.guardster.com/subscription/proxy_free.php

If your on NTL Paul do me a favour and test my site as I know NTL uses proxy. You don't need an account as guest can post on the Asylum board

Paul M 11-27-2005 09:42 AM

Quote:

Originally Posted by Gary Bolton
I installed this, and then went to a well know FREE WEB PROXY and used it to posts on my site. Seems even this was able to bypass this hack here:

http://www.guardster.com/subscription/proxy_free.php

If your on NTL Paul do me a favour and test my site as I know NTL uses proxy. You don't need an account as guest can post on the Asylum board

Most free proxy's are deliberately annonymous, so they will bypass this. I will post on your forum shortly.

Edit: Well atually I won't post as I can't - even in the Asylum I get a no permission screen.

Edit of the Edit: Oh, it seems I can't post replies, only a new topic - that's bizarre .....

Drifter Jet 11-27-2005 02:48 PM

That's because he has onlyl certain permissions for the members set up..or something like that.

MRGTB 11-27-2005 04:06 PM

Quote:

Originally Posted by Paul M
Most free proxy's are deliberately annonymous, so they will bypass this. I will post on your forum shortly.

Edit: Well atually I won't post as I can't - even in the Asylum I get a no permission screen.

Edit of the Edit: Oh, it seems I can't post replies, only a new topic - that's bizarre .....

Thats the way I have it setup so Guests can make new posts, you should have been able to reply to others on that board, but not reply to yourself asa guest. I'll double check that.

MRGTB 11-27-2005 04:39 PM

I created an animated version of the ipp image to suit the default one if you want it

Paul M 11-27-2005 06:41 PM

Nice.

RFViet 01-26-2006 04:45 PM

Does it work on vB 3.5.2 ????

Paul M 01-26-2006 04:48 PM

Quote:

Originally Posted by RFViet
Does it work on vB 3.5.2 ????

https://vborg.vbsupport.ru/showthrea...threadid=95198

Mysticales 07-13-2006 03:17 PM

Tell me, should I install this on my 3.0.9 vB or should I just wait till we upgrade to 3.5.4? Im asking since Im not sure which one is better for this mod.

Plus I am wondering.. is it worth it? If people can use free online proxies, then what is the main thing? Just wondering. =)

Paul M 07-30-2006 11:46 PM

Quote:

Originally Posted by Mysticales
Tell me, should I install this on my 3.0.9 vB or should I just wait till we upgrade to 3.5.4? Im asking since Im not sure which one is better for this mod.

Plus I am wondering.. is it worth it? If people can use free online proxies, then what is the main thing? Just wondering. =)

It's your choice, it works equally well on either. I cannot tell you if it's worth it - it is to me - but it depends on proxy usage in your member base. It doesn't hurt anything to use it.

rjmjr69 01-26-2007 08:03 AM

Ok this is probably really stupid but. Where does this information appear? I'm obviously a noob to all this but I did get the hack installed and I do not see any type of change as to user's ips that button that was installed does not appear anywhere. I searched thru the admincp and do not see anything different in there either. What is my retarded brain missing?

Was very simple to install with those well written directions. I find some of the other hacks are really short on instructions or written for those who know what they are doing.

MickDoneDee 01-26-2007 10:48 PM

Every post has an IP address associated with it and stored in the post table in the database. The field is labelled ipaddress. Without this hack that IP address could be a proxy IP which could not be used to ban someone because it's not their real IP address.

If you have Admin rights to your forum you can see a blue PC icon in the postbit area of every post near the triangle icon used to report the post. Hovering the mouse over the icon will reveal the IP address. Without the hack installed this IP address could be a real address or a proxy IP address.

After the hack is installed, a post using a proxy IP address will show a reddish icon instead of the blue one. The IP address that appears when the mouse hovers over it is the real IP address - not the proxy IP address. The real IP address should be used when banning the IP address of an unwanted user like a spammer.

To check if anyone has posted with a proxy IP address you can run this query:

SELECT `post`.`proxyip` , `post`.`postid`
FROM post
ORDER BY `post`.`proxyip` DESC

If you have admin rights the query can be run from the admin cp.

Import & Maintenance -> Execute SQL Query

In the edit box of the manual query section paste the above query and click Continue. If some of your members have posted using a proxy IP you should get some results like:

proxyip .................postid
85.158.137.195 ....122709
85.158.137.195 ....127575
85.12.72.2 ..........118743
85.12.72.2 ..........118744
85.12.72.2 ..........118745
85.12.72.2 ..........119307
85.12.72.2 ..........121896
85.12.72.2 ..........121898
85.12.72.2 ..........122090

Use any postid to find that post and it should display a reddish PC icon in the postbit area. That confirms the hack is working properly. This hack has been very helpful to ban spammers and other unwanted posters from my forum.

rjmjr69 01-27-2007 03:25 AM

Thank you sir very much. Well explained.


All times are GMT. The time now is 03:42 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
  • Page Generation 0.01508 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete