Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (mmkk), 60 guests, and 286 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Ruben
Ruben
Lutz,FL
Posts: 5,824
Joined: December 2003
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 15
FREAK 11
M4TT 10
mmkk 5
Ruben 5
isaac 4
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
New Reply
Print Thread
test #252424
03/10/13 11:13 AM
03/10/13 11:13 AM
Joined: Jan 2013
Posts: 3
G
grengecactus Offline OP
stranger
grengecactus  Offline OP
stranger
G
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 05:37 PM
07/20/16 05:37 PM
Joined: Jan 2004
Posts: 2,650
driv Offline

driv  Offline


Joined: Jan 2004
Posts: 2,650
<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 06:59 PM
07/20/16 06:59 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
thanks

Reply Quote
Re: test [Re: grengecactus] #258582
07/21/16 12:05 AM
07/21/16 12:05 AM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
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 06:59 AM
07/21/16 06:59 AM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
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 01:21 PM
07/22/16 01:21 PM
Joined: Jan 2004
Posts: 2,650
driv Offline

driv  Offline


Joined: Jan 2004
Posts: 2,650
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 01:22 PM
07/22/16 01:22 PM
Joined: Jan 2004
Posts: 2,650
driv Offline

driv  Offline


Joined: Jan 2004
Posts: 2,650
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 01:50 PM
07/22/16 01:50 PM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
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 01:57 PM
07/22/16 01:57 PM
Joined: Jan 2004
Posts: 2,650
driv Offline

driv  Offline


Joined: Jan 2004
Posts: 2,650
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 03:18 PM
07/22/16 03:18 PM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
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
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
I want to update forum but can't find license
by dimaninc. 11/23/17 10:51 AM
Forum Statistics
Forums36
Topics35,014
Posts190,533
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)