• Have posted a similar help request on a BuddyPress Forum, but unfortunately it hasn’t attracted a reply yet. Am attempting to implement some of the anti-spam ideas from the various WP and BP fora.Would really appreciate some guidance in order to do this correctly. Some of this may appear stupid – beginning to know my way around but,frankly, my knowledge is quite limited.

    My Set up is the following:

    a) Multisite with subdirectories https://examplesite.com/https://examplesite.com/subsite1https://examplesite.com/subsite2https://examplesite.com/subsite3 etc etc.

    ?b)BuddyPress installed on a subdirectory. say on https://examplesite.com/subsite14 define ( ‘BP_ROOT_BLOG’, 14 );?

    c) So that there is a consistent signup interface I have redirected the signup of https://examplesite.com/ from https://examplesite.com/wp-signup.php to https://examplesite.com/subsite3/register via a plugin Quick Page/Post Redirect

    Question 1
    ?With regard to?

    1)# BEGIN ANTISPAMBLOG REGISTRATION
    ?2)RewriteEngine On?
    3)RewriteCond %{REQUEST_METHOD} POST
    ?4)RewriteCond %{REQUEST_URI} .wp-signup.php*?
    5)RewriteCond %{HTTP_REFERER} !.examplesite.com. [OR]
    ?6)RewriteCond %{HTTP_USER_AGENT} ^$?
    7)RewriteRule (.*)https://lmgtfy.com/?q=spammer [R=301,L]

    A) In my .htaccess file there is already a line “RewriteEngine On” . Do i still include line 2 of the above?

    B) Is there any particular place in the .htaccess file where the above code should be inserted ?

    C) In line 4 of the above what do I replace .wp-signup.php* with, if at all ? Is it .register* ? , Is it .register.php* ? or is it .subsite3/register.php ?? or is it something else ????

    D) In line 5 of the above do i replace !.examplesite.com. with anything ? say !.examplesite.com/subsite3. ???

    Question 2?.

    With regard to “changing the register slug”

    ?A) does this mean changing the name of the file register.php ??? or something else ??? and inserting define( “BP_REGISTER_SLUG”, “your-registration-slug” ); with the new name replacing “your-registration-slug”. (say replacing the name of register.php with retsiger.php or with some other name) ?

    ?B) Does “changing the register slug” have “down the road consequences” or does inserting define( “BP_REGISTER_SLUG”, “your-registration-slug” ); handle all that ? (for instance Would it then be necessary to go into the plugins like say Buddypress Humanity and change any references to register.php to whatever its name has been changed to or is that taken care of by the define( statement ))

    C) Are there any other files that have to be amended ?

    D) Suggestions have been made on the fora to remove the bbpress register.php. as it is unused and may be a backdoor. Good Idea ?

    Question 3

    ?If the site was https://www.examplesite.com/ instead of https://examplesite.com/ would there be any changes to your advice ?

    Question 4

    When examining my wp-config.php I Noticed define( ‘SUBDOMAIN_INSTALL’, false ); . Is that OK ? as Network install was done on https://examplesite.com/ .

    Question 5.

    Even though there is a redirect from wp-signup.php on https://examplesite.com/ Would it do any good to change that as well ?

    Many Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: BuddyPress] spam prevention’ is closed to new replies.