Guest User

/usr/bin/disable-adblocking

a guest
Oct 22nd, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Back up current hosts file:
  4. mv /etc/hosts /etc/hosts.disabled
  5.  
  6. # Create new empty hosts file (with default entries for a normally functioning OS)
  7. touch /etc/hosts
  8. echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts
  9. echo "::1 localhost.localdomain localhost" >> /etc/hosts
  10.  
  11. echo "Ad-blocking disabled"
Add Comment
Please, Sign In to add comment