Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function scanForEnumerationAttempt($strRedirectionURL, $strRequestedURL) {
- if (1 === preg_match('/\?author=([\d]*)/', $strRequestedURL)) {
- $strRedirectionURL = false;
- }
- return $strRedirectionURL;
- }
- add_filter('redirect_canonical','scanForEnumerationAttempt', 10,2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement