Read the tutorial here : http://forum.xda-developers.com/showthread.php?t=695411
Now I'll make it simple, just do this :
Your Legend must be rooted!
Step 1 : Download host file from the attach at the end of the post and unzip it to get the hosts file
Step 2 : Copy hosts to ADB folder (in my case : C:/android/tools) download Android SDK here
Step 3 : reboot your Legend to recovery mode (Install Rom manager on Market, Flash recovery, than reboot into Recovery mode)
Step 4 : Open Command window (Start menu > Run > cmd (windows xp) / Start menu > cmd (windows 7))
Step 5 : point to your adb folder
In my case :
C:\android\tools\adb shell mount /system (Enter)
C:\android\tools\adb push hosts /system/etc/hosts (Enter)
C:\android\tools\adb reboot (Enter)
Note : This hosts file was updated long time ago, so it might not work with new apps. But it will disable most of the apps.