|
|
|
|
|
|
![]() |
#1 |
Mean people suck, nice people swallow, are you mean or nice?
|
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 <Limit GET> order allow,deny deny from 62.212.84.16 allow from all </Limit> |
![]() |
![]() |
![]() |
#2 |
If something goes wrong at the plant, blame the guy who can't speak English
Join Date: Oct 2006
Posts: 35
|
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 |
![]() |
![]() |
![]() |
#3 |
Mean people suck, nice people swallow, are you mean or nice?
|
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 <Limit GET> order allow,deny deny from 62.212.84.16 allow from all </Limit> Last edited by Licker4U; 2006-10-29 at 11:19 AM.. |
![]() |
![]() |
![]() |
#4 |
Mean people suck, nice people swallow, are you mean or nice?
|
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 <Limit GET> order allow,deny deny from 62.212.84.16 allow from all </Limit> What do I need to change to prevent outside hotlinking but allow me to hotlink my own images? Thanks for any input! |
![]() |
![]() |
![]() |
#5 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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 <Limit GET> order allow,deny deny from 62.212.84.16 allow from all </Limit> 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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#6 |
Mean people suck, nice people swallow, are you mean or nice?
|
Thanks!
Do I omit this?: # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> Where do I get that and is it one number or four? Last edited by Licker4U; 2006-10-29 at 03:03 PM.. |
![]() |
![]() |
![]() |
|
|