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)
-   -   Slightly technical question regarding mod_rewrite hotlink protection (https://gfy.com/showthread.php?t=427466)

badmrfrosty 02-05-2005 11:14 AM

Slightly technical question regarding mod_rewrite hotlink protection
 
Hi, i'm wondering if you guys are using mod_rewrite to hotlink protect your servers or if you noticed that it causes more problems than it is worth? I recently started using it and i've read that it can cause certain browsers issues/etc.

Does anyone have any real world input on this?

Thanks,
BMF

disregard 02-05-2005 12:13 PM

The amount of problems it causes depends on what rules you use. The deal is that browsers aren't guaranteed to provide referrers so some rulesets will not let those browsers see your images. In real life, your audience has browsers that work fine with normal hotlink rules.

Make sure your rules are ok though.. some people have broken rules.

Slap Dot 02-05-2005 12:20 PM

You mean .htaccess hotlink protection? That's not what Mod Rewrite is

swedguy 02-05-2005 12:26 PM

Quote:

Originally Posted by Slap Dot
You mean .htaccess hotlink protection? That's not what Mod Rewrite is

mod_rewrite is used for regular image hotlink protection.


I have mine set up to allow from my own domains + browsers that doesn't send a referer and I don't have any problems.

disregard 02-05-2005 01:30 PM

Quote:

Originally Posted by Slap Dot
You mean .htaccess hotlink protection? That's not what Mod Rewrite is


Actually, mod_rewrite usually is used for .htaccess hotlink protection. You plop a bunch of mod_rewrite rules in your .htaccess file typically. Like this: http://faq.ath.cx/index.php?query=a126.html

badmrfrosty 02-07-2005 10:00 AM

Below is my .htaccess

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pornacle\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png|mpeg|wmv|mpg)$ - [F]

not sure if that looks ok? anyone have any pointers?

Thanks


All times are GMT -7. The time now is 12:54 AM.

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