Patch avatar url upload

by Akay - 26-03-2015, 08:42 PM
We are!
Posts:
1,044
Joined:
Jan 2015
Likes:
108
Credits:
1,994
Reputation:
25
3 Years of Service
#1
OP
Posted: 26-03-2015, 08:42 PM (This post was last modified: 26-03-2015, 08:43 PM by Akay.)
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:
Closed Account
Posts:
2,764
Joined:
Jan 2015
Likes:
148
Credits:
2,098
Reputation:
26
3 Years of Service
#2
Posted: 01-04-2015, 11:04 PM
" 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.
Closed Account
Posts:
1,382
Joined:
Jan 2015
Likes:
126
Credits:
1,412
Reputation:
30
3 Years of Service
#3
Posted: 02-04-2015, 02:53 AM
(01-04-2015, 11:04 PM)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?
Closed Account
Posts:
2,764
Joined:
Jan 2015
Likes:
148
Credits:
2,098
Reputation:
26
3 Years of Service
#4
Posted: 02-04-2015, 03:01 AM
(02-04-2015, 02:53 AM)AndresXZ09 Wrote:
(01-04-2015, 11:04 PM)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:
Closed Account
Posts:
1,382
Joined:
Jan 2015
Likes:
126
Credits:
1,412
Reputation:
30
3 Years of Service
#5
Posted: 02-04-2015, 03:05 AM
(02-04-2015, 03:01 AM)Hug Wrote:
(02-04-2015, 02:53 AM)AndresXZ09 Wrote:
(01-04-2015, 11:04 PM)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:
Closed Account
Posts:
2,764
Joined:
Jan 2015
Likes:
148
Credits:
2,098
Reputation:
26
3 Years of Service
#6
Posted: 02-04-2015, 03:13 AM
(02-04-2015, 03:05 AM)AndresXZ09 Wrote:
(02-04-2015, 03:01 AM)Hug Wrote:
(02-04-2015, 02:53 AM)AndresXZ09 Wrote:
(01-04-2015, 11:04 PM)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:
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)