This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ($_SERVER['SERVER_PORT'] != 443) { | |
| header(sprintf('Location: https://%s%s', $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI'])); | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Fiddler; | |
| class Handlers { | |
| static var injectJs = "<script>alert('I see you enjoy YouTube.')</script>"; | |
| static var hostList = new HostList("*.youtube.com"); | |
| static function OnBeforeResponse(oSession : Session) { | |
| // Filter to only HTML documents and on the domains we want | |
| if (hostList.ContainsHost(oSession.hostname) && oSession.oResponse.headers.ExistsAndContains("Content-Type", "text/html")) { | |
| oSession.utilDecodeResponse(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Fiddler; | |
| class Handlers { | |
| static var nopeGif = "<img src=\"http://i.imgur.com/OLRXz.gif\" />"; | |
| static var blocked = "<html><head><title>Blocked</title></head><body><h2>Blocked</h2><p>Stop using all my bandwidth!!</p><br />" + nopeGif + "</body></html>"; | |
| static var hostList = new HostList("*.netflix.com,*.nflximg.com"); | |
| static function OnBeforeRequest(oSession: Session) { | |
| if (hostList.ContainsHost(oSession.hostname)) { | |
| oSession["ui-bold"] = "true"; |
NewerOlder