arditc
Forum Replies Created
-
I think that part is unnecessary. It’s just the name of the dude who helped me fix it. His “watermark” or whatever.
Forum: Fixing WordPress
In reply to: Receiving spam registrations even though captcha installed.This has been resolved!
The spam registrations happened from wp-login.php?action=register
This wordpress registration form doesn’t get a captcha with the plugins I was using.So i redirected the wp-admin registration page from spammers by redirecting to login url. And if spammers try to access that URL they will be redirected to the login page.
Added the following code to “functions.php”.
add_filter( 'register', 'wpdreamer_remove_registration_link' ); function wpdreamer_remove_registration_link( $registration_url ) { return __( ' ', 'dwprp' ); } add_action( 'init', 'wpdreamer_redirect_registration_page' ); function wpdreamer_redirect_registration_page() { if ( isset( $_GET['action'] ) && $_GET['action'] == 'register' ) { ob_start(); wp_redirect( wp_login_url() ); ob_clean(); } }
This has been resolved!
The spam registrations happened from wp-login.php?action=register
This wordpress registration form doesn’t get a captcha with the plugins I was using.So i redirected the wp-admin registration page from spammers by redirecting to login url. And if spammers try to access that URL they will be redirected to the login page.
Added the following code to “functions.php”.
add_filter( 'register', 'wpdreamer_remove_registration_link' ); function wpdreamer_remove_registration_link( $registration_url ) { return __( ' ', 'dwprp' ); } add_action( 'init', 'wpdreamer_redirect_registration_page' ); function wpdreamer_redirect_registration_page() { if ( isset( $_GET['action'] ) && $_GET['action'] == 'register' ) { ob_start(); wp_redirect( wp_login_url() ); ob_clean(); } }
- This reply was modified 8 years, 1 month ago by arditc.
Bump?