logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Block spam visitor
Author
oracle765



Joined: 28 Jun 2015
Posts: 3
Location: Brisbane

PostPosted: Sun 28 Jun '15 9:26    Post subject: Block spam visitor Reply with quote

Hi Professionals I am after a bit of advice

I have a regular visitor from 1999521.videos-for-your-business.com/ and I am aware this is spam from semalt.com, the trouble is I have tried blocking this but it keeps coming back the number 1999521 changes frequently

I have the following in my htaccess file

## STOP REFERRER SPAM
RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-offer\.com [NC,OR]
RewriteCond %{HTTP_REFERER} videos-for-your-business\.com [NC,OR]
RewriteCond %{HTTP_REFERER} semaltmedia\.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-solution\.com
RewriteRule .* - [F]

Any ideas what I could do

Thanks
Alan
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 28 Jun '15 17:46    Post subject: Reply with quote

You can change the regex to (.*)\.videos-for-your-business\.com
Back to top
oracle765



Joined: 28 Jun 2015
Posts: 3
Location: Brisbane

PostPosted: Sun 28 Jun '15 22:04    Post subject: Reply with quote

Hi James thanks for this

so does that mean it should be

(.*)\.videos-for-your-business\.com

or just

\.videos-for-your-business\.com

many thanks
Alan
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 29 Jun '15 11:33    Post subject: Reply with quote

As far I know it should be

RewriteCond %{HTTP_REFERER} (.*)\.videos-for-your-business\.com
Back to top


Reply to topic   Topic: Block spam visitor View previous topic :: View next topic
Post new topic   Forum Index -> Apache