![]() |
htaccess antihotlinking question
(I don't want to disable hotlinking completely.)
You can block individual sites by using this: RewriteCond %{HTTP_REFERER} ^http://(.+\.)?site\.com/ [NC] such as: RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC] but what if I want to block every site that has the text "fusker" anywhere in the url? How do I do that? |
come on, one of you knows this info. :D
|
one of yous sales short solutions :D
|
did you ask google? I have no clue. good luck .
|
+1 to your postcount though, good job! (thanks for the bump :))
|
Quote:
RewriteCond %{HTTP_REFERER} !^www\.mysite\.com RewriteCond %{HTTP_REFERER} !^$ 1) says only allow referrers that are your own site 2) says don't block if there's no referrer Hope it helps |
Code:
RewriteCond %{HTTP_REFERER} ^.*fusker.*$ [NC] |
Quote:
hmmm... just tried it, that didn't work for (example: http://www.milkonya.com/fusker/index.php?lid=36173) |
Quote:
ie: Code:
RewriteEngine On |
Code:
RewriteEngine On |
oh,
all RewriteCond's except the last one need to have [NC,OR] |
also the fusker rule needs another match-anything at the end
^http://(.+\.)?fusker\..*$ [NC] |
so...
Code:
RewriteEngine On |
yes,
and remove the first condition REQUEST_FILENAME ... |
fuck, now it's disabled hotlinking completely.
|
Quote:
GL |
appreciate the bump just the same bro :)
|
bump!:pimp
|
| All times are GMT -7. The time now is 07:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123