![]() |
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 |
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 |
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 |
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! |
Code:
RewriteEngine on 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. |
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:
|
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