Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   help with htaccess (http://www.greenguysboard.com/board/showthread.php?t=35659)

Licker4U 2006-10-29 09:02 AM

help with htaccess
 
This site is linking to two of my mgp files:

http://www.filez.com/search.jsp?q=thong&type=v&offset=0

Tech support at my chitty server said to add this to my htaccess:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?filez.*$
RewriteRule .*[Mm][Pp][Gg]$ [R,L]

Do I add it all at the very bottom or does it fit in somewhere with everything else?

Thanks for any input!

This is my current htaccess file:

# -FrontPage-

#Options None

RewriteEngine on
# leave this line in allow empty referrers, remove to disallow empty referrers
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fuckpage\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fannyfuck\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

AddHandler server-parsed .htm .html


order allow,deny
deny from 62.212.84.16
allow from all

gamester 2006-10-29 09:22 AM

Aloha Licker4U

Just put this two line:
RewriteCond %{HTTP_REFERER} ^http://(www\.)?filez.*$
RewriteRule .*[Mm][Pp][Gg]$ [R,L]

at the bottom of this:

RewriteEngine on
# leave this line in allow empty referrers, remove to disallow empty referrers
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fuckpage\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fannyfuck\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

I think this will help you

Licker4U 2006-10-29 11:13 AM

Like this?

# -FrontPage-

#Options None


RewriteEngine on
# leave this line in allow empty referrers, remove to disallow empty referrers

RewriteCond %{HTTP_REFERER} !^$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fuckpage\.com(:[0-9]+)?(/.*)?$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fannyfuck\.com(:[0-9]+)?(/.*)?$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$

RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

RewriteCond %{HTTP_REFERER} ^http://(www\.)?filez.*$
RewriteRule .*[Mm][Pp][Gg]$ [R,L]

AddHandler server-parsed .htm .html


order allow,deny
deny from 62.212.84.16
allow from all

Licker4U 2006-10-29 01:57 PM

Yikes! I did something that stops me from using ../ to get images on my pages. Here is what I have:

# -FrontPage-

#Options None

RewriteEngine on

# leave this line in allow empty referrers, remove to disallow empty referrers

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://fuckpage.com [NC]

RewriteCond %{HTTP_REFERER} !^$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fuckpage\.com(:[0-9]+)?(/.*)?$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fannyfuck\.com(:[0-9]+)?(/.*)?$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*best-wet-pussy\.com(:[0-9]+)?(/.*)?$ [NC]

RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$

RewriteCond %{HTTP_REFERER} !^http://www.fuckpage.com [NC]

RewriteCond %{HTTP_REFERER} ^http://(www\.)?fusker.*$ [OR]

RewriteCond %{HTTP_REFERER} ^http://(www\.)?xanga.*$ [OR]

RewriteCond %{HTTP_REFERER} ^http://(www\.)?distime.*$ [OR]

RewriteCond %{HTTP_REFERER} ^http://(www\.)?devilfinder.*$

RewriteCond %{HTTP_REFERER} ^http://(www\.)?filez.*$

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ [R,L]

RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

AddHandler server-parsed .htm .html


order allow,deny
deny from 62.212.84.16
allow from all


What do I need to change to prevent outside hotlinking but allow me to hotlink my own images?

Thanks for any input!

cd34 2006-10-29 02:51 PM

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} fusker [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?xanga [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?distime [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?devilfinder [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(www\.)?filez [NC]
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fuckpage\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*fannyfuck\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*best-wet-pussy\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]

AddHandler server-parsed .htm .html


order allow,deny
deny from 62.212.84.16
allow from all

two brief notes...

1), Fusker rarely hotlinks from www.fusker.com or fusker.com, usually it is fusker.somedomain.com
2) the 1\.2\.3\.4 should be your IP web site's IP address

Other than that, I rearranged things a bit, cleaned up some of the duplicate rules. I believe what is posted above should do everything you intended to do.

Licker4U 2006-10-29 02:59 PM

Thanks!

Do I omit this?:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

order deny,allow
deny from all
allow from all


order deny,allow
deny from all


Quote:

Originally Posted by cd34 (Post 309207)
2) the 1\.2\.3\.4 should be your IP web site's IP address

Where do I get that and is it one number or four?


All times are GMT -4. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc