GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   linux block referral URL (https://gfy.com/showthread.php?t=1057030)

alex79 02-10-2012 02:03 AM

linux block referral URL
 
how can I block the traffic sent from a URL (referral)?

V_RocKs 02-10-2012 02:20 AM

RewriteCond %{HTTP_REFERER} ^http://(.+)?baddomain.com [NC]
RewriteRule /* http://www.absolutelynowhere.in [R,L]

alex79 02-10-2012 02:38 AM

Quote:

Originally Posted by V_RocKs (Post 18749534)
RewriteCond %{HTTP_REFERER} ^http://(.+)?baddomain.com [NC]
RewriteRule /* http://www.absolutelynowhere.in [R,L]


and how can I add this for all websites (not for a single virtualhost)

fris 02-10-2012 08:11 AM

Quote:

Originally Posted by alex79 (Post 18749544)
and how can I add this for all websites (not for a single virtualhost)

if your hosts are in 1 dir like

/home/chris/domain1.com
/home/chris/domain2.com

then you could upload a .htaccess to /home/chris

and it will take effect on all sites


All times are GMT -7. The time now is 04:20 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123