How do I turn off Concrete5's phone home capability?

Permalink 1 user found helpful
Yesterday I did not have internet access for much of the day. Not a huge deal in that I develop sites locally under my own copy of Apache.

But I noticed something...

Concrete5 was taking forever to load up the various pages in the Dashboard.

After digging around some I discovered that it was because of it's attempts to connect tohttp://www.concrete5.org. Such attempts are of course connected mainly with access to the marketplace and with presenting what is available to me through the Dashboard (a good thing).

So I am not saying that there is any Concrete5 dark, sinister phone home spying going on or anything like that.

Nevertheless I do not like it when software I use automatically phones home. Specially not when there doesn't seem to be any easy way of turning that off.

I can redirecthttp://www.concrete5.org to 127.0.0.1 through my hosts file (and did) but of course that prevents me being able to access concrete5.org altogether.

And I can use mod_rewrite acting inside an .htaccess to get all fancy and negate access tohttp://www.concrete5.org under certain conditions but...I am wondering if there is some easier way to prevent Concrete5 from phoning home unless I explicitly tell it to do so?

Carlos

 
Darkwater23 replied on at Permalink Reply
Darkwater23
I'm pretty sure there's an option to disable the marketplace under one of the settings areas. Site Wide Settings or something. (I'm at work behind BigBroWall, so I can't be more specific.)
hostco replied on at Permalink Best Answer Reply
hostco
Add this to your /config/site.php file

define('ENABLE_MARKETPLACE_SUPPORT', 0); //disables the MP (Optional)
carlos123 replied on at Permalink Reply
Excellent. Thank you!

Carlos
carlos123 replied on at Permalink Reply
I decided to use...

/* Disable phone home while developing on localhost */
$pos = strpos($_SERVER['DOCUMENT_ROOT'], '/home/carlos/web/');
if ($pos !== false) { // != won't work!
   define('ENABLE_MARKETPLACE_SUPPORT', 0);
}


/home/carlos/web/ is my document root under my local copy of Apache. The above turns off MarketPlace phone home attempts only on localhost while I am developing a site and leaves them on when the site is accessed by an admin at the host.

I haven't tested this at the host yet but it should work.

Carlos