How To Block Referrals to My Website Through .htaccess?

Author Topic: How To Block Referrals to My Website Through .htaccess?  (Read 50094 times)

Offline newnerdTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
I want to block referrals from a website and it's country level domains from visiting my website. - How can I do that from .htaccess?

for e.g: I wanna stop example.ru , example.dk, example.bd, example.in, example.nu and all example.** ...... to stop sending referrers to my website.


Offline susanburling

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 5
  • Posts: 77
  • Karma: 1
  • Gender: Female
    • PHP Development Company
Re: How To Block Referrals to My Website Through .htaccess?
« Reply #1 on: 12-03-2018, 00:05:31 »
You can block Visitors to your website by Country Using Firewall
This link might be helpful https://www.ip2location.com/blockvisitorsbycountry.aspx

Offline John - Smith

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 10
  • Posts: 167
  • Karma: 4
  • Gender: Male
    • online-paystubs
Re: How To Block Referrals to My Website Through .htaccess?
« Reply #2 on: 12-13-2018, 22:17:04 »
hey op

country firewall[link shared by susanburling] works for you? let us know  :)

Offline billyjhon

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 85
  • Karma: 0
Re: How To Block Referrals to My Website Through .htaccess?
« Reply #3 on: 07-15-2019, 04:30:41 »
Be exceptionally cautious contributing directions in the .htaccess record. ...

Login to your Google Analytics account.

Snap Admin.

Snap All Filters.

Give the channel a name.

Select Predefined.

Select 'Bar', 'traffic from IP locations' and 'that are equivalent to' in the cases underneath.

Offline Neel Patel

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 16
  • Posts: 232
  • Karma: 12
  • Gender: Male
    • Autofresh
Re: How To Block Referrals to My Website Through .htaccess?
« Reply #4 on: 07-18-2019, 22:48:11 »
Instead of asking an SEO person, ask this to a developer!
they can help you as they are good at reg exp. and these htacess files and all!


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1276 Views
Last post 09-10-2011, 10:24:40
by Maddy
2 Replies
2208 Views
Last post 12-04-2014, 02:47:16
by Stephen
0 Replies
1009 Views
Last post 04-27-2015, 17:09:57
by nqservices
3 Replies
2408 Views
Last post 08-04-2016, 04:45:21
by TomClarke
3 Replies
1870 Views
Last post 02-07-2017, 00:31:34
by gurujeet