Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2014, 01:06 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with IP's

Hi,

I need your help asap with this:

I am the Admin on pipesmokerunlimited.com but am neither the owner nor the license owner. The owner has implemented a software called "SiteLock" to prevent spamming... essentially, it's a firewall for the forum.

SiteLock makes ALL IP addresses of ALL members the SAME... this makes it impossible for us to ban a single IP address or do searches for IP addresses since they're all the same.

I've advised the owner to uninstall SiteLock but he does not feel like doing this since he sees daily spam attacks that have been prevented by SiteLock... I see his point.

Anyway, the owner contacted the SiteLock account manager who told him that I need to need to add an X-forwarded-for header to the site... this should make all unique IP address appear again in the ACP and Who's Online view.

Problem is that I have no clue how to install that X-forwarded for-header since I have never done this before as I have never had SiteLock implemented on another forum I was admin on...

Does it need server accesss to do this?

Could someone please tell me step by step how to install the X-forwarded-for header to the site?
Reply With Quote
  #2  
Old 03-22-2014, 01:27 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may work but I am not 100% sure.

First off, if you have never edited the config file read this, https://vborg.vbsupport.ru/showthread.php?t=308457

Assuming you are using VB 4.2.X (and the config.php file from VB 4.2.X) find this line near the end of the file:

Code:
//$config['Misc']['proxyipheader'] = 'HTTP_X_FORWARDED_FOR';
and remove the two slashes in front (//) - this is called UN-commenting the line. Re-save the file and upload it to your server.

IP addresses will now be taken from the HTTP_X_FORWARDED_FOR header.
Reply With Quote
2 благодарности(ей) от:
Max Taxable, tbworld
  #3  
Old 03-22-2014, 01:53 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We are running vB 4.2.1

Can I upload something to the server when I don't have server access??
Reply With Quote
  #4  
Old 03-22-2014, 01:55 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should have that line in your config, as you are running a vB version of 4.2.X, you need FTP access, or cpanel access

4.2.0
4.2.1
4.2.2
Reply With Quote
  #5  
Old 03-22-2014, 02:02 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do have access to the ACP... where in the ACP do I find the option to change the config file?
Reply With Quote
  #6  
Old 03-22-2014, 02:03 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't, it needs to be edited through the FTP, or cpanel.
Reply With Quote
  #7  
Old 03-22-2014, 02:18 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if I don't have access to the server but do have access to the Admin Control Panel, I can't do this??
Reply With Quote
  #8  
Old 03-22-2014, 02:30 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, as I said above, this needs to be done via FTP or cpanel.
Reply With Quote
  #9  
Old 03-22-2014, 02:35 PM
BULLDOG BULLDOG is offline
 
Join Date: Jan 2014
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, seems that the owner has to do it then.
Reply With Quote
  #10  
Old 03-22-2014, 02:42 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the owner is the only one with FTP or cpanel access, then that would be correct.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 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
  • Page Generation 0.04439 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete