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 Not working Properly (https://gfy.com/showthread.php?t=58065)

VeriSexy 04-24-2002 10:27 AM

htaccess Not working Properly
 
Anyone see anything wrong?

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*greenapple.verisexy.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.28.252.3.*$ [NC]
RewriteRule .*\.jpg$ http://www.greenapple.verisexy.net/404.html [R,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*greenapple.verisexy.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.28.252.3.*$ [NC]
RewriteRule .*\.jpeg$ http://www.greenapple.verisexy.net/404.html [R,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*greenapple.verisexy.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.28.252.3.*$ [NC]
RewriteRule .*\.gif$ http://www.greenapple.verisexy.net/404.html [R,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*greenapple.verisexy.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.28.252.3.*$ [NC]
RewriteRule .*\.mpg$ http://www.greenapple.verisexy.net/404.html [R,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^.*greenapple.verisexy.net.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.28.252.3.*$ [NC]
RewriteRule .*\.mpeg$ http://www.greenapple.verisexy.net/404.html [R,L]

damac 04-24-2002 11:36 AM

looks ok, what is happening?

I remember I was having troubles in my server and I had to edit the apache config file to add symlinks or some thing for the hotlinking to work without giving me errors serving up pages.

JFPdude 04-24-2002 11:44 AM

http://www.theadultwebmaster.com/hos...r_errors.phtml


This article will explain whats wrong. You have completely ther wrong syntax. :thumbsup

VeriSexy 04-24-2002 12:10 PM

Quote:

Originally posted by damac
looks ok, what is happening?

I remember I was having troubles in my server and I had to edit the apache config file to add symlinks or some thing for the hotlinking to work without giving me errors serving up pages.

Problem is I was still able to hotlink a image. I used this code on another server and it worked fine.

VeriSexy 04-25-2002 11:39 AM

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://greenapple.verisexy.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.greenapple.verisexy.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://greenapple.verisexy.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.greenapple.verisexy.net/.*$ [NC]
RewriteRule !.*\.(gif|jpg|jpeg|mpg|mpeg)$ - [NC,F]
ErrorDocument 403 http://www.greenapple.verisexy.net/404.html


I tryed that and my bandwidth dropped in half so I quickly pulled it. Either I have a ton of hotlinkers or somethings not working right

Dreamman010 04-25-2002 01:39 PM

Quote:

Originally posted by VeriSexy
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://greenapple.verisexy.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.greenapple.verisexy.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://greenapple.verisexy.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.greenapple.verisexy.net/.*$ [NC]
RewriteRule !.*\.(gif|jpg|jpeg|mpg|mpeg)$ - [NC,F]
ErrorDocument 403 http://www.greenapple.verisexy.net/404.html


I tryed that and my bandwidth dropped in half so I quickly pulled it. Either I have a ton of hotlinkers or somethings not working right

My RewriteRule line looks something like that:
RewriteRule !\.(extensions|extensions)$ http://www.address.com/hotlink.htm [NC,R]

Your RewriteRule is a little bit different.
Yours: RewriteRule !.*\.
Mine: RewriteRule !\.(

Maybe that's the problem.

:2 cents:

VeriSexy 04-25-2002 02:01 PM

Thanks, I will give it a try. Nice to see other freehost helping each other out instead of bashing =) That's what I call class!!!

RaGe 04-25-2002 02:05 PM

Quote:

Originally posted by JFPdude
http://www.theadultwebmaster.com/hos...r_errors.phtml


This article will explain whats wrong. You have completely ther wrong syntax. :thumbsup

Nice article.. I'll try their 404 suggestion since I've had problems with SE rankings


All times are GMT -7. The time now is 09:29 PM.

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