Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter arditc

    (@arditc)

    I think that part is unnecessary. It’s just the name of the dude who helped me fix it. His “watermark” or whatever.

    Thread Starter arditc

    (@arditc)

    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();
    	}
    }
    Thread Starter arditc

    (@arditc)

    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.
    Thread Starter arditc

    (@arditc)

    Bump?

Viewing 4 replies - 1 through 4 (of 4 total)