Skip to content

Instantly share code, notes, and snippets.

@zhufenggood
Created April 4, 2015 17:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhufenggood/8de9cc7c7f1e568198c4 to your computer and use it in GitHub Desktop.
Save zhufenggood/8de9cc7c7f1e568198c4 to your computer and use it in GitHub Desktop.
Block any Flash video site p2p upload (windows)
@Echo Off
REM 32 bit windows
if exist "%windir%\System32\Macromed\Flash\mms.cfg" echo RTMFPP2PDisable=1 >> "%windir%\System32\Macromed\Flash\mms.cfg"
REM 64 bit windows
if exist "%windir%\SysWOW64\Macromed\Flash\mms.cfg" echo RTMFPP2PDisable=1 >> "%windir%\SysWOW64\Macromed\Flash\mms.cfg"
REM chrome on windows
if exist "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\" mkdir "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\System"
if exist "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\System" echo RTMFPP2PDisable=1 >> "%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\System\mms.cfg"
REM have a see
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment