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)
-   -   .htaccess question (https://gfy.com/showthread.php?t=318328)

bawdy 06-27-2004 12:17 AM

.htaccess question
 
Im using the following htaccess in the top level of my domain. This works fine for all documents in sub-folders... the images show properly... but on the top level (ie default document) the images dont display. How can I correct this so that the images show properly in the default document?


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]

Lycanthrope 06-27-2004 02:00 AM

Try this:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://ip.ip.ip.ip.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://ip.ip.ip.ip:80.*$ [NC]
ReWriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ - [F]

It is something to do w/ them slashes I'm guessing...

Use the one above as it includes your IP and port 80 and also you won't have to worry about case issues should you get a content provider that names everything in caps and you don't feel like renaming all the pics....

bawdy 06-27-2004 03:41 AM

perfect thanks :thumbsup

V_RocKs 06-27-2004 03:49 AM

Sweet!


All times are GMT -7. The time now is 05:27 PM.

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