Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

referral spam & .htaccess

Options
  • 30-07-2005 2:15pm
    #1
    Registered Users Posts: 1,169 ✭✭✭


    Hiya, referral spam has been mucking with my stats for a while now, and I finally have a few hours to deal with it.

    I've found what sounds like the appropriate solution, edit the .htaccess file and block the spammers.

    So what I want seems to be something like these:

    http://www.savelebanon.org/htaccess.txt

    http://jessey.net/htaccess.txt

    What I'm a little concerned about is I have rewrite engine stuff auto generated by WordPress, and since I haven't dealt with this sort of thing before I'm a little nervous about correctly inserting the stuff.

    Can I just leave all the wordpress rewrite rules up the top of the file and then after the </IfModule> line just start including all this stuff?

    Any tips/sample .htaccess files much appreciated!


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Assuming the IfModule is for mod_rewrite, you should tack them in after the WP rules and before the closing IfModule marker. Also best not to dupe the RewriteEngine and RewriteBase directives.

    adam


Advertisement