PDA

View Full Version : Problem with IP's


BULLDOG
03-22-2014, 01:06 PM
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?

ozzy47
03-22-2014, 01:27 PM
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:

//$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.

BULLDOG
03-22-2014, 01:53 PM
We are running vB 4.2.1

Can I upload something to the server when I don't have server access??

ozzy47
03-22-2014, 01:55 PM
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

BULLDOG
03-22-2014, 02:02 PM
I do have access to the ACP... where in the ACP do I find the option to change the config file?

ozzy47
03-22-2014, 02:03 PM
You don't, it needs to be edited through the FTP, or cpanel. :)

BULLDOG
03-22-2014, 02:18 PM
So if I don't have access to the server but do have access to the Admin Control Panel, I can't do this??

ozzy47
03-22-2014, 02:30 PM
No, as I said above, this needs to be done via FTP or cpanel.

BULLDOG
03-22-2014, 02:35 PM
Okay, seems that the owner has to do it then.

ozzy47
03-22-2014, 02:42 PM
If the owner is the only one with FTP or cpanel access, then that would be correct.

tbworld
03-22-2014, 02:49 PM
@Ozzy47, nice job here. I thought you deserved an AT-A-BOY!

Jesla
03-22-2014, 09:07 PM
Hey guys, I'm the owner and made the above change the the Config.php file.
It had been commented out just as was said however we still are only seeing
the shared IP's. Do I need to purge a cache or something to have the change
take effect?

Thank you for your help, I'm so lost doing sever file editing.

ozzy47
03-22-2014, 09:30 PM
AFAIK that should have done it, perhaps contact SiteLock and tell them you did as they asked, but you are still experiencing issues.

Jesla
03-22-2014, 09:32 PM
That was next on my list....

Thank you

BULLDOG
03-23-2014, 09:20 PM
I hope this is soon gonna work... Being able to manage IP's is essential!

Max Taxable
03-23-2014, 10:47 PM
CloudFlare does this too, as do most Proxy based CDNs.

But it's not going to help with spammers. You'll find that out.

ozzy47
03-23-2014, 10:49 PM
Yeah I think you need to get a list of proxies used from SiteLock, or something like that. But they should be the ones to help with integration, and issues, as they are integrating into vBulletin.