Membership Membership:
Latest New User Latest: vpros
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 137

People Online People Online:
Visitors Visitors: 39
Members Members: 0
Total Total: 39

NakedMCSE Computer Tech Support Forums

So you have passed all of the exams and you are now out in the real world of windows servers, linux servers and freebsd servers faced with a tech support problem you have never seen before...

Find free online tech support in the forums below, respecting that advice is free, but work beyond advice is not...

The General forum is provided for off topic discussion.

You need a user account to post - please Register or Login.

Online Tech Support Forums
 
  Forum  Open Source Tec...  NGINX Server  Blocking referer spam in NGINX
Previous Previous
 
Next Next
New Post 12/24/2009 9:46 AM
Informative
  Walker
119 posts
www.lairdscomputer.com
10th Level Poster


Blocking referer spam in NGINX 
Modified By Walker  on 2/22/2011 9:59:06 PM)

Referer spam is where someone will hit your site with the referer section of the browser request set to be a site they want to drive traffic to.  The idea is to have links to those sites how up in any public stats pages you may have - which are common for blogs and forums.

With NGINX you can use the valid_referers module to handle this:

location / {
  valid_referers none blocked *.yourdomain.com *.otherdomain.com;
 
  if ($invalid_referer) {
    return   403;
  }
}

Where you replace the otherdomain domains with the referer domains that you wish to allow.

Walker
www.lairdscomputer.com

 
Previous Previous
 
Next Next
  Forum  Open Source Tec...  NGINX Server  Blocking referer spam in NGINX
Send me One Million FREE Guaranteed Visitors