Advertisement
Guest User

Dark Souls 2 - Windows firewall rules

a guest
Oct 24th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :: To dissallow Dark Souls 2 from connecting to the internet:
  2.  
  3. :: Copy these 3 lines below to notepad, and save it as "blockdks2.bat" (or whatver you want). Just remember that the quotes are needed or it will just get saved as a normal TXT file.
  4. :: Note: Remember to change <steamfolder> to the real location of the gamefiles. Usually it's "C:\Program (x86)\Steam", unless you have selected another folder.
  5.  
  6.  
  7. :: "blockdks2.bat"
  8. netsh advfirewall firewall add rule name="DarkSouls2outcustom" dir=out action=block program="<steamfolder>\SteamApps\common\Dark Souls II\Game\darksoulsii.exe"
  9. netsh advfirewall firewall add rule name="DarkSouls2incustom" dir=in action=block program="<steamfolder>\SteamApps\common\Dark Souls II\Game\darksoulsii.exe"
  10. pause
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. :: To remove these firewall rules, create a new .bat file and save these 3 lines to it:
  18. :: "allowdks2.bat"
  19. netsh advfirewall firewall delete rule name="DarkSouls2outcustom"
  20. netsh advfirewall firewall delete rule name="DarkSouls2incustom"
  21. pause
  22.  
  23.  
  24.  
  25.  
  26.  
  27. :: A few last notes. You can remove the pause lines if you wish for the window to autoclose (I would keep it there so I can see if it worked or not).
  28. :: You also need to run these .bat files as Administrator, so rightlick and select that to make it work.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement