├── .gitattributes ├── UI ├── Steam-Blocker-WPF │ ├── DrbF8ZEVAAA6z8l.ico │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── App.xaml.cs │ ├── App.xaml │ ├── MainWindow.xaml │ ├── Steam-Blocker-WPF.sln │ ├── MainWindow.xaml.cs │ └── Steam-Blocker-WPF.csproj └── Steam-Blocker-Setup │ ├── Steam-Blocker-Setup-cache │ ├── cacheIndex.txt │ └── part1 │ │ ├── disk1.cab │ │ └── output-info.ini │ ├── Steam-Blocker-Setup.aiproj │ └── Steam-Blocker-Setup.aip ├── scripts ├── Unblock-Steam.ps1 ├── Block-Steam.ps1 └── Save-BlockSteamToProfile.ps1 ├── README.md └── .gitignore /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/DrbF8ZEVAAA6z8l.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rossy167/steam-blocker/HEAD/UI/Steam-Blocker-WPF/DrbF8ZEVAAA6z8l.ico -------------------------------------------------------------------------------- /scripts/Unblock-Steam.ps1: -------------------------------------------------------------------------------- 1 | Get-NetFirewallRule | Where-Object DisplayName -eq 'Block-Steam Rossy' | Remove-NetFirewallRule | Out-Null 2 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/cacheIndex.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rossy167/steam-blocker/HEAD/UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/cacheIndex.txt -------------------------------------------------------------------------------- /UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/part1/disk1.cab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rossy167/steam-blocker/HEAD/UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/part1/disk1.cab -------------------------------------------------------------------------------- /UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/part1/output-info.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rossy167/steam-blocker/HEAD/UI/Steam-Blocker-Setup/Steam-Blocker-Setup-cache/part1/output-info.ini -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace Steam_Blocker_WPF 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /scripts/Block-Steam.ps1: -------------------------------------------------------------------------------- 1 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Common Files\Steam\SteamService.exe' -Profile any -Direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 2 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Steam\bin\cef\cef.win7x64\steamwebhelper.exe' -Profile any -Direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 3 | New-NetFirewallRule -Action block -Program 'C:\program files (x86)\steam\steam.exe' -Profile any -direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 4 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Common Files\Steam\SteamService.exe' -Profile any -Direction Inbound -Displayname 'Block-Steam Rossy' | Out-Null 5 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Steam\bin\cef\cef.win7x64\steamwebhelper.exe' -Profile any -Direction Inbound -Displayname 'Block-Steam Rossy' | Out-Null 6 | New-NetFirewallRule -Action block -Program 'C:\program files (x86)\steam\steam.exe' -Profile any -direction Inbound -Displayname 'Block-Steam Rossy' | Out-Null 7 | -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Steam_Blocker_WPF.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /scripts/Save-BlockSteamToProfile.ps1: -------------------------------------------------------------------------------- 1 | Add-Content -Path $PROFILE -Value " 2 | function Block-Steam {New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Common Files\Steam\SteamService.exe' -Profile any -Direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 3 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Steam\bin\cef\cef.win7x64\steamwebhelper.exe' -Profile any -Direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 4 | New-NetFirewallRule -Action block -Program 'C:\program files (x86)\steam\steam.exe' -Profile any -direction Outbound -Displayname 'Block-Steam Rossy' | Out-Null 5 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Common Files\Steam\SteamService.exe' -Profile any -Direction Inbound -Displayname 'Block-Steam Rossy' | Out-Null 6 | New-NetFirewallRule -Action block -Program 'C:\Program Files (x86)\Steam\bin\cef\cef.win7x64\steamwebhelper.exe' -Profile any -Direction Inbound -Displayname 'Block-Steam Rossy' | Out-Null 7 | New-NetFirewallRule -Action block -Program 'C:\program files (x86)\steam\steam.exe' -Profile any -direction Inbound -Displayname 'Block-Steam Rossy'} 8 | function Unblock-Steam {Get-NetFirewallRule | Where-Object DisplayName -eq 'Block-Steam Rossy' | Remove-NetFirewallRule | Out-Null}" -------------------------------------------------------------------------------- /UI/Steam-Blocker-WPF/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |