TechSansar.com
  • Services
  • Top Posts
  • Nepali IT
  • Startups
  • Tech News
  • Categories
    • News
      • Wellness
      • Lifestyle
      • Culture
      • Tech
      • Sport
No Result
View All Result
TechSansar.com
  • Services
  • Top Posts
  • Nepali IT
  • Startups
  • Tech News
  • Categories
    • News
      • Wellness
      • Lifestyle
      • Culture
      • Tech
      • Sport
No Result
View All Result
TechSansar.com

Block Spam Referrers on Your Website or Blog

15 years ago
in Computing, Tips & Tricks, Websites
Reading Time: 9 mins read
A A
0

Related Post

Top 10 iOS 18 features that you can’t ignore #iOS18

Be AI literate in 2024 – here is how to #AILiterate #ChatGPT #bard #claude #LLMs

Try Google’s new Search Generative Experience, you won’t return back!

Static vs Dynamic QR Codes: Understanding the Differences

Last month, TechSansar.com suffered a lot due to heavy fake traffic generated via some unwanted websites. Those websites were not referring TechSansar but using scripts to alias the visitors or send fake visitors to the site. As much as thousands of fake visitors consumed more than 2 gigs of bandwidth each hour. And finally we had to take actions, now we have no such fake referrers, or such referrer spams reduced to just few number.No spam logo, img credit stopusagebasedbilling.wordpress.com
So, on this article we write about different ways to understand the fake referrers and to totally eliminate them. Now onward do not become happy if your blog have majority of visitors from some Polish or Russian matured content sites, yes they are fake and they don’t produce any page impressions or page views at all.
What is a Referrer Spam?
Referrer Spam or log spam or referrer bombing are all spamdexing ie spamming or referring fake visitors according to Wikipedia. With increasing spam referrers, your bandwidth is consumed and you have bad impression with search engines; while those spam websites get benefit from search engine after establishing link connection with your website. There are lot of harms to your server and site performance, in the meanwhile we don’t want it at all. They are not genuine HTTP referrer at all, avoid them.

How to Block Referrer Spam?

There are a number of ways to block fake HTTP or Referrer Spams, whatever the process mean they basically do the same task of blocking unwanted visitors to your website or blog.

Increasing SPAM referrers... and controlling them: read full article @ http://wp.me/pDvVE-IZ
Increasing SPAM referrers... and controlling them: read full article @ http://wp.me/pDvVE-IZ

Block referrer using .htaccess file

Open .htaccess file on your web server where your website is hosted (in most of the cases it is hidden, ensure that the file is *.htaccess extension only with no name) and append the chunk of codes to the file.
Visit aaronlogan.com and copy paste the given codes to your .htaccess file (ensure you do this only to the code said to you, do not copy paste the whole html document) and you can modify the code to meet your requirement.
block user agents used to harvest URLs and email addresses
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4.0 .*Win 9x 4.90.*$ [NC,OR]
or
block bots that use your bandwidth for their own commercial reasons
RewriteCond %{HTTP_USER_AGENT} ^.*TurnitinBot.*$ [NC,OR]
or
block URLs based of certain keywords

RewriteCond %{HTTP_REFERER} ^(http://)?(www.)?.*(-|.)affiliate_program(-|.).*$ [NC,OR]
or
block traffic directly from selected IPs
deny from 12.22.85.3
Block referrers using variables of server
This may not be easy task for most of the readers, so be careful when using it. For details see this article at besthostratings.com, set span_ref environment variable like

SetEnvIfNoCase Referer "^http://(www.)?some-spammer.com" spam_ref=1

or in allow deny portion insert

Deny from env=spam_ref

Block referrers using WordPress hacks
If you are using WordPress to host your website or blog, then there are several plugins or you can even apply WP hacks to prevent unwanted websites to refer to your website. Using following WordPress plugins will easy your work a lot, eg keywords and urls to block from your list.
WordPress Top Referrers: The WordPress Referrers plugin is a fully automated, self running referral tracking script.
You set it up once and just let it run, the list is automatically cut after x days, you can block any domains from being included, includes spam protection and other features.
Secure WordPress by SSM: Remove Error information on login page; adds index.html to plugin directory; removes the wp-version, except in admin area.
Also be careful with Do follow and Do not follow traits.
That’s it with the spam guard. Now you should have some clean referrers, huh. Confused still, write to us.

Share212Tweet133Send

Related Posts

Top iOS 18 features
Computing

Top 10 iOS 18 features that you can’t ignore #iOS18

Apple recently unveiled iOS 18, the latest iteration of its mobile operating system (should we say iPad and WatchOS and...

by TechSansar Editor
September 10, 2024
Illustration being AI literate in 2024, image generated by DALL-E.
Computing

Be AI literate in 2024 – here is how to #AILiterate #ChatGPT #bard #claude #LLMs

ChatGPT is not just a sensation and Google Bard's experimental conversational search is not just another way to search the...

by tsGeek
July 23, 2024

Recent News

Highlights of Nepal Digital Budget 2082-83

Nepal Digital Budget 2082/83: AI, Startups, 5G, and the Tech Roadmap Ahead

May 30, 2025
Screenshot from a desktop computer showing existing services offered by Nagarik App; image by TechSansar.com

Nagarik App Integrates National Identity Card: A Leap Towards Comprehensive E-Governance

January 24, 2025
All .np domain owners are required to reverify their domain names.

The Great Reverification: What Nepal’s .np Domain Owners Need to Know

January 5, 2025
Microsoft Forms Sync Update

Microsoft Forms Sync Update: Adapting to Microsoft’s New Approach for Excel Integration

January 3, 2025
Free PDFTools
Free PDFTools

Nice one!

Categories

  • Applications
  • Computing
  • Culture
  • Entertainment
  • Environment
  • Event
  • Featured
  • How To
  • Internetworking
  • Lifestyle
  • Nepali IT
  • News
  • Social Networking
  • Software
  • Sport
  • Tech
  • Tech News
  • Telecom
  • Travel
  • Uncategorized
  • Wellness
  • News
  • Lifestyle
  • Entertainment
  • Tech
  • Sport
  • Culture
  • Wellness
  • Event
  • Travel
  • Environment

TechSansar.com, ICT For Media Pvt Ltd, Regd #249079/077/078, VAT #609868175.
By continuing to use this site, you agree to our cookies and privacy policies.
Here is our Do Not Track (DNT) Guide. Hosted on a VPS in Singapore and uses this beautiful WordPress theme. You can also subscribe to our newsletter.
Creating tech contents for the b̶o̶t̶s̶ humans since 2009 • Team TechSansar • ICT4M with ❤ from Nepal

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • Shop peripherals
  • Buy softwares
  • Top websites
  • Contact us

TechSansar.com, ICT For Media Pvt Ltd, Regd #249079/077/078, VAT #609868175.
By continuing to use this site, you agree to our cookies and privacy policies.
Here is our Do Not Track (DNT) Guide. Hosted on a VPS in Singapore and uses this beautiful WordPress theme. You can also subscribe to our newsletter.
Creating tech contents for the b̶o̶t̶s̶ humans since 2009 • Team TechSansar • ICT4M with ❤ from Nepal