MyBB Tutorials

Patch avatar url upload

Submitted by Akay, , Thread ID: 2104

Thread Closed
26-03-2015, 09:42 PM
This post was last modified: 26-03-2015, 09:43 PM by Akay
#1
First you want to go to inc/functions.php, at line 5584 (May be different if you use google SEO), you will look for a function called "fetch_remote_file". This function allows for a douchebag to get the real IP address of the forum.
In order to stop this, we will use this code.

This is within the section that says if(function_exists("curl_init")) for those of you who have edited their functions.php file, Insert the following at or near the beginning of this block.


PHP Code:
curl_setopt($chCURLOPT_PROXY"127.0.0.1");
curl_setopt($chCURLOPT_PROXYPORT"8080");
curl_setopt($chCURLOPT_PROXYTYPECURLPROXY_SOCKS5); 



Replace the IP address and port with the corresponding ones of your proxy. If it's an HTTP proxy, replace CURLPROXY_SOCKS5 with CURLPROXY_HTTP.

:yus:

RE: Patch avatar url upload

#2
" This function allows for a douchebag to get the real IP address of the forum."

you can also.. ehm... disable avatar uploading from a URL :rly: but this works as well.

RE: Patch avatar url upload

#3
02-04-2015, 12:04 AM
Hug Wrote:
" This function allows for a douchebag to get the real IP address of the forum."

you can also.. ehm... disable avatar uploading from a URL :rly: but this works as well.

Where can I find that option?

RE: Patch avatar url upload

#4
02-04-2015, 03:53 AM
AndresXZ09 Wrote:
02-04-2015, 12:04 AM
Hug Wrote:
" This function allows for a douchebag to get the real IP address of the forum."

you can also.. ehm... disable avatar uploading from a URL :rly: but this works as well.

Where can I find that option?

in the admin control panel :hurr:

RE: Patch avatar url upload

#5
02-04-2015, 04:01 AM
Hug Wrote:
02-04-2015, 03:53 AM
AndresXZ09 Wrote:
02-04-2015, 12:04 AM
Hug Wrote:
" This function allows for a douchebag to get the real IP address of the forum."

you can also.. ehm... disable avatar uploading from a URL :rly: but this works as well.

Where can I find that option?

in the admin control panel :hurr:

Seriously? I thought is was in the UCP :fp:

RE: Patch avatar url upload

#6
02-04-2015, 04:05 AM
AndresXZ09 Wrote:
02-04-2015, 04:01 AM
Hug Wrote:
02-04-2015, 03:53 AM
AndresXZ09 Wrote:
02-04-2015, 12:04 AM
Hug Wrote:
" This function allows for a douchebag to get the real IP address of the forum."

you can also.. ehm... disable avatar uploading from a URL :rly: but this works as well.

Where can I find that option?

in the admin control panel :hurr:

Seriously? I thought is was in the UCP :fp:
Nah mybb aint dat dumhb. :yus:

Users browsing this thread: 1 Guest(s)