|
MyBB 1.6.4 CloudFlare user ip fix
|
|
07-28-2011, 06:18 AM
Post: #1
|
|||
|
|||
|
MyBB 1.6.4 CloudFlare user ip fix
This is just a fix for getting a users actual IP instead of CloudFlare's ip on MyBB 1.6.4 as the 1.6.3 fix doesn't work on 1.6.4
1. Go to /inc/ in your MyBB directory and open up functions.php 2. Go to line 2889 and edit the following: Replace: Code: if(!preg_match("#^(10|172\.16|192\.168)\.#", $_SERVER['REMOTE_ADDR']))with: Code: if(!preg_match("#^(10|172\.16|192\.168)\.#", $_SERVER['HTTP_CF_CONNECTING_IP']))Reupload the file and enjoy! |
|||
|
08-21-2011, 11:33 AM
Post: #2
|
|||
|
|||
RE: MyBB 1.6.4 CloudFlare user ip fix This user has been denied support.
tooooo hard to dd code
my pc hanged |
|||
|
08-21-2011, 11:47 AM
Post: #3
|
|||
|
|||
|
RE: MyBB 1.6.4 CloudFlare user ip fix
Pretty sure 1.6.4 has a fix for this already
It's under Server & Optimisation settings I believe.I could be entirely wrong though as I haven't used cloudflare for a while. |
|||
|
08-22-2011, 01:43 AM
Post: #4
|
|||
|
|||
| RE: MyBB 1.6.4 CloudFlare user ip fix | |||
|
12-11-2011, 03:18 PM
Post: #5
|
|||
|
|||
|
RE: MyBB 1.6.4 CloudFlare user ip fix
Thank you Richard
|
|||
|
06-06-2012, 11:33 AM
Post: #6
|
|||
|
|||
|
RE: MyBB 1.6.4 CloudFlare user ip fix
Does it work for 1.6.8 too?
|
|||
|
06-06-2012, 11:56 AM
Post: #7
|
|||
|
|||
|
RE: MyBB 1.6.4 CloudFlare user ip fix
Not needed for 1.6.8: ACP > Config > Settings > Server and Optimization Options > Scrutinize User's IP address? = Yes
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help




This user has been denied support.

It's under Server & Optimisation settings I believe.