Google & Facebook: Reign Of Internet's "Ad Duopoly" Headed Toward A Momentous Demise
#14
Flipoff2 
If you want to really fuck with Facebook, you can prevent people from following links from Facebook-owned sites to your website. Just add a rewrite condition to your .htaccess file for all of the domains in the above list.    

htaccess-guide.com Wrote:To set-up block multiple referrers, create a .htaccess file following the main instructions and guidance which includes the following text:

RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} otherdomain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} anotherdomain\.com
RewriteRule .* - [F]

The above lines tell the Apache Web Server to block traffic from the URL 'otherdomain.com' and 'anotherdomain.com'. Note the backslash before the dot, this is important, e.g. 'domain\.com'. The only difference between blocking a single referrer and multiple referrers is the modified [NC, OR] flag in the multiple referrers example, this should be added to every domain except the last.

http://www.htaccess-guide.com/deny-visit...-referrer/

Laugh
Reply


Please note that new posts in this forum must be approved by a moderator before becoming visible.
[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
RE: Google & Facebook: Reign Of Internet's "Ad Duopoly" Headed Toward A Momentous Demise - by Guest - 12-21-2018, 01:39 PM



















Disclaimer | Terms Of Service | Privacy Policy