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)
-   -   the htaccess code to prevent hotlinking (https://gfy.com/showthread.php?t=415046)

nico-t 01-11-2005 11:24 AM

the htaccess code to prevent hotlinking
 
what is it? and id also like to know how to put a site in the code that can hotlink, u know like GFY can hotlink when i wanna post some pics here.

SplitInfinity 01-11-2005 11:28 AM

Example.... have fun! :-)

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*xxxfantasyland.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*xxxfantasyland.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.188.105.94/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.188.105.94:80/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.xxxfantasyland.com
ErrorDocument 404 http://216.188.105.94/pussy/index.html

nico-t 01-11-2005 01:08 PM

Quote:

Originally Posted by SplitInfinity
Example.... have fun! :-)

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*xxxfantasyland.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*xxxfantasyland.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.188.105.94/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.188.105.94:80/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.xxxfantasyland.com
ErrorDocument 404 http://216.188.105.94/pussy/index.html

ok thanks, gonna test it later on :thumbsup


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

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