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)
-   -   Direct image display/linking (https://gfy.com/showthread.php?t=469634)

acctman 05-19-2005 03:37 PM

Direct image display/linking
 
anyone know the htaccess code to prevent someone from typing in http://www.blah.com/image/something.jpg and showing an image

teksonline 05-19-2005 03:40 PM

mod rewrite

acctman 05-19-2005 03:45 PM

do you have an example

Lycanthrope 05-19-2005 03:51 PM

Basically, just leave off the null referrer statement that is commonly added.

It should look like this:

RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.hotlink.url

However, while this will block direct requests and your freeloading copy and pasters, it will also block spiders.

acctman 05-19-2005 04:12 PM

i'll just use it on the image folder instead of root


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

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