mercredi 29 avril 2015

.htaccess regular expression syntax

sorry for my bad English. I would exclude from my website every referral spam that contains the word "buttons" because I'm tired of all "social-buttons", "buttons-for-your-website", "my-brother-buttons" ecc. that I can see in my Google Analytics report. I'm not into Regular Expression, but I thought of something like this:

RewriteCond %{HTTP_REFERER} ^http://ift.tt/1DJdMby [NC,OR]

Is it wrong? Could this method exclude this kind of referral? I didn't tested it: I don't know how to do. Thank you very much :)

Aucun commentaire:

Enregistrer un commentaire