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

tranza 10-21-2005 09:50 AM

Testing htaccess
 
Can you see this pic?

http://www.marypussy.com/galleries/36/02.JPG

u-Bob 10-21-2005 09:54 AM

nice tits.

Lycanthrope 10-21-2005 09:54 AM

Nicole Sheridan without makeup?

tranza 10-21-2005 09:55 AM

Quote:

Originally Posted by u-Bob
nice tits.

So you can see it?

Marcus Aurelius 10-21-2005 09:56 AM

I see it just fine.

tranza 10-21-2005 09:57 AM

Fuck! I moved servers and I lost my htaccess files (well, the originals are in Brazil).

Can you guys help me out by pointing out what I have done wrong here?

Options All -Indexes

order allow,deny
allow from all

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.marypussy\.com
RewriteRule (.*) http://www.marypussy.com/$1 [R=permanent,L]

RewriteEngine on
RewriteCond %{HTTP_REFERER} .*fusker*.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]


ErrorDocument 400 http://www.marypussy.com/
ErrorDocument 403 http://www.marypussy.com/
ErrorDocument 404 http://www.marypussy.com/
ErrorDocument 500 http://www.marypussy.com/
ErrorDocument 501 http://www.marypussy.com/
ErrorDocument 503 http://www.marypussy.com/

abz 10-21-2005 10:03 AM

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?marypussy.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://marypussy.com [R,NC]
ErrorDocument 400 http://www.marypussy.com/
ErrorDocument 403 http://www.marypussy.com/
ErrorDocument 404 http://www.marypussy.com/
ErrorDocument 500 http://www.marypussy.com/
ErrorDocument 501 http://www.marypussy.com/
ErrorDocument 503 http://www.marypussy.com/

Lycanthrope 10-21-2005 10:04 AM

this assumes null referrers and domain.com and anotherdomain.com are domains that you WANT to be able to hotlink from. If you want to block null referrers just remove the top line.

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?anotherdomain.com.*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC,L]

Any request for an image from anywhere else will be given a 403 response

tranza 10-21-2005 10:19 AM

So a htaccess like this one would be fine? (see below)

order allow,deny
allow from all

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?marypussy.com.*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC,L]

RewriteEngine on
RewriteCond %{HTTP_REFERER} .*fusker*.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]


ErrorDocument 400 http://www.marypussy.com/
ErrorDocument 403 http://www.marypussy.com/
ErrorDocument 404 http://www.marypussy.com/
ErrorDocument 500 http://www.marypussy.com/
ErrorDocument 501 http://www.marypussy.com/
ErrorDocument 503 http://www.marypussy.com/

Tom_PM 10-21-2005 10:22 AM

If you block the null referrer though, alot of firewalls like nortons will block the images too. Pain in the ass.

tranza 10-21-2005 10:24 AM

Quote:

Originally Posted by PR_Tom
If you block the null referrer though, alot of firewalls like nortons will block the images too. Pain in the ass.

Damn! Really?

So what should my .htaccess should look like?

BTW: I don't remember all this stuff from the first time I dealt with my htaccess, it seemed easier.

abz 10-21-2005 10:25 AM

just use this http://www.htmlbasix.com/disablehotlinking.shtml

Tom_PM 10-21-2005 10:29 AM

Well, assuming the rest of your code is how it needs to be, then make it like this:

order allow,deny
allow from all

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?marypussy.com.*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC,L]

RewriteEngine on
RewriteCond %{HTTP_REFERER} .*fusker*.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]


ErrorDocument 400 http://www.marypussy.com/
ErrorDocument 403 http://www.marypussy.com/
ErrorDocument 404 http://www.marypussy.com/
ErrorDocument 500 http://www.marypussy.com/
ErrorDocument 501 http://www.marypussy.com/
ErrorDocument 503 http://www.marypussy.com/


The null referrer might be ok to block, but if you submit to places who use firewalls, and get rejected because of "broken images", thats likely why.
I also dont know why you'd need your

order allow,deny
allow from all

Since you are not denying from anything. But I'm no expert either.

tranza 10-21-2005 10:29 AM

Quote:

Originally Posted by abz

That's how you got that code you showed me, huh??

;)

Will this affect what PR_Tom just told me?

Tom_PM 10-21-2005 10:33 AM

RewriteCond %{HTTP_REFERER} !^$

Thats the line that says "If the referrer is NOT Null"

Add it for more protection, but if a reviewer tells you broken images, he/she may have a null referrer due to nortons.

tranza 10-21-2005 10:40 AM

Quote:

Originally Posted by PR_Tom
RewriteCond %{HTTP_REFERER} !^$

Thats the line that says "If the referrer is NOT Null"

Add it for more protection, but if a reviewer tells you broken images, he/she may have a null referrer due to nortons.

I just took that down. htacess should be working now...

http://www.marypussy.com/galleries/36/03.JPG

abz 10-21-2005 10:40 AM

shit I cant see them tits now

tranza 10-21-2005 10:50 AM

Quote:

Originally Posted by abz
shit I cant see them tits now

That's the point of htacess...

:)

OG LennyT 10-21-2005 10:52 AM

I allowed GFY on my .htaccess, along with Google.. I'm nutty that way

abz 10-21-2005 10:54 AM

Quote:

Originally Posted by dvd316
I allowed GFY on my .htaccess, along with Google.. I'm nutty that way

:1orglaugh

tranza 10-21-2005 11:05 AM

Quote:

Originally Posted by dvd316
I allowed GFY on my .htaccess, along with Google.. I'm nutty that way

Google doesn't hotlink.

:)


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

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