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 | |
// @@TODO@@ classify this as a pub pre-controller | |
// @@TODO@@ semicolin var, might help edge \xYZ style hexors -- might affect speed though | |
// @@TOTO@@ make vars to turn on blocking of common WP and enterprise requests | |
// @@TODO@@ make modes to check in user agent, referrer, post, headers | |
// @@TODO@@ mode for strict validation of IP in addr + forwarder style headers | |
// @@TODO@@ testing mode (still allows traffic) | |
// @@TODO@@ log wrapper and modes |
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 | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |