Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 67 guests, and 229 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
guod
guod
USA
Posts: 38
Joined: July 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 8
Morgan 3
Geoff 3
Slaz 2
FREAK 2
DennyP 1
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
New Reply
Print Thread
test #252424
03/10/13 12:13 PM
03/10/13 12:13 PM
G
grengecactus  Offline OP
stranger
Joined: Jan 2013
Posts: 3
test

Reply Quote
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: test [Re: grengecactus] #258576
07/20/16 06:37 PM
07/20/16 06:37 PM
driv  Offline

Joined: Jan 2004
Posts: 2,654
<threadHijackForaGoodReasonAlert>

Unfortunately, down to some greedy and malicious individuals, I've had to avail myself of Sucuri's CloudProxy Firewall services.
As a result, StopForumSpam is seeing all my registration IP's as the same (bunch of IPs).

Their FAQ says...
Quote:

Same IP for All Users

If your system is showing the same IP address for all clients connected to your site that's because CloudProxy is a passthrough WAF. It will be in the middle of the communication between the clients and the hosting server to be able to filter the malicious requests. Because of that, the headers are modified and the source IP will be shown as the CloudProxy IP.


and...
Quote:

PHP

Add the following code to your application (the config.php or configuration.php is usually a good location):



PHP Code

if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{
	$_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
}
 


What's the best way to implement this?


d. smile

</threadHijackForaGoodReasonAlert>


Using version :: 7.6.0
Reply Quote
Re: test [Re: grengecactus] #258579
07/20/16 07:59 PM
07/20/16 07:59 PM
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,205
California
thanks


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released
Reply Quote
Re: test [Re: grengecactus] #258582
07/21/16 01:05 AM
07/21/16 01:05 AM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
Driv, I appended that to the IP listing code, try to see if it gives you any sort of bad user message, if so i'll tweak its placement.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Reply Quote
Re: test [Re: grengecactus] #258583
07/21/16 07:59 AM
07/21/16 07:59 AM
JAISP  Online Tapedshut
veteran
Joined: Feb 2007
Posts: 1,332
Pennsylvania
My IP Address on my board shows up as 192.168.3.1 as I'm running on the same IP as my server.

Reply Quote
Re: test [Re: isaac] #258584
07/22/16 02:21 PM
07/22/16 02:21 PM
driv  Offline

Joined: Jan 2004
Posts: 2,654
Originally Posted by id242
thanks
You're welcome. I think. cool


Using version :: 7.6.0
Reply Quote
Re: test [Re: Gizmo] #258585
07/22/16 02:22 PM
07/22/16 02:22 PM
driv  Offline

Joined: Jan 2004
Posts: 2,654
Originally Posted by Gizmo
Driv, I appended that to the IP listing code, try to see if it gives you any sort of bad user message, if so i'll tweak its placement.

Sorry mate, you've lost me there.

IP listing code?


Using version :: 7.6.0
Reply Quote
Re: test [Re: grengecactus] #258587
07/22/16 02:50 PM
07/22/16 02:50 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
v7.6.0 has support for CDN's and Proxy Servers that display a common variable, which are:
PHP Code
// What is the users IP address?  Are they behind a Proxy or using a CDN?
if(isset($_SERVER["HTTP_FORWARDED_FOR"])) {
	$user_ip = $_SERVER["HTTP_FORWARDED_FOR"];
} elseif(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
	$user_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} elseif(isset($_SERVER["HTTP_X_CLUSTER_CLIENT_IP"])) {
	$user_ip = $_SERVER["HTTP_X_CLUSTER_CLIENT_IP"];
} elseif(isset($_SERVER["HTTP_X_SUCURI_CLIENTIP"])) {
	$user_ip = $_SERVER["HTTP_X_SUCURI_CLIENTIP"];
} elseif(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
	$user_ip = $_SERVER["HTTP_CF_CONNECTING_IP"];
} else {
	$user_ip = $_SERVER["REMOTE_ADDR"];
} 


Your "HTTP_X_SUCURI_CLIENTIP" has been added after the forwarded for and above the CloudFlare identification..


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Reply Quote
Re: test [Re: grengecactus] #258588
07/22/16 02:57 PM
07/22/16 02:57 PM
driv  Offline

Joined: Jan 2004
Posts: 2,654
Ah ok thanks.
In the meantime, is there anything I can do for v7.5.8?


Using version :: 7.6.0
Reply Quote
Re: test [Re: grengecactus] #258589
07/22/16 04:18 PM
07/22/16 04:18 PM
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,956
Portland, OR; USA
The UBB.threads7 series, up until 7.6.0 just reads the REMOTE_ADDR server variable; you would have to use grep to return every instance of that variable and adjust it (such as say, adding the above php bit to the ubbthreads.php file and replacing the calls for remote addr to use $user_ip).

If you where behind CloudFlare I'd suggest installing their apache module to change the addresses accordingly, but I'm not sure if "CloudProxy" has one available.

You could try using that bit (though generally I'm against changing server variables, and I'm not sure how well smarty will play with it):
PHP Code
if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{
	$_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
} 


In the ubbthreads.php file; before:
Code
// include all of the required libraries


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Reply Quote
Quick Reply

Options HTML is disabled
UBBCode is enabled


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,443
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2