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
+ (void)load { | |
static NSMutableDictionary *myMutableDict; | |
static NSDictionary *myDict; | |
myMutableDict = [NSMutableDictionary dictionaryWithDictionary:@{}]; | |
myDict = @{@"sub_dict" : myMutableDict}; | |
/* Hop on a background thread */ | |
dispatch_async(dispatch_get_global_queue(0, 0), ^{ | |
/* Constantly mutate the mutable dictionary */ |
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
{ | |
"Host": "poc.razb.me", | |
"Connection": "Keep-Alive", | |
"Accept-Encoding": "gzip", | |
"Accept": "*\\/*", | |
"User-Agent": "facebookexternalhit\\/1.1 (+http:\\/\\/www.facebook.com\\/externalhit_uatext.php)", | |
} |
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
{ | |
"Host": "poc.razb.me", | |
"Connection": "Keep-Alive", | |
"Accept-Encoding": "gzip", | |
"User-Agent": "Mozilla\\/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/71.0.3578.98 Safari\\/537.36", | |
} |
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 | |
$user_agent = $_SERVER["HTTP_USER_AGENT"]; | |
if (strpos($user_agent, "facebookexternalhit") !== false) { | |
header("Location: https://runescape.com"); | |
} else { | |
echo("poc.razb.me"); | |
} |
OlderNewer