Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-10-29, 09:02 AM   #1
Licker4U
Mean people suck, nice people swallow, are you mean or nice?
 
Licker4U's Avatar
 
Join Date: Sep 2003
Location: Lower Alabama-The Redneck Riviera
Posts: 2,377
Send a message via ICQ to Licker4U Send a message via AIM to Licker4U
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>
Licker4U is offline   Reply With Quote
Old 2006-10-29, 09:22 AM   #2
gamester
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
gamester is offline   Reply With Quote
Old 2006-10-29, 11:13 AM   #3
Licker4U
Mean people suck, nice people swallow, are you mean or nice?
 
Licker4U's Avatar
 
Join Date: Sep 2003
Location: Lower Alabama-The Redneck Riviera
Posts: 2,377
Send a message via ICQ to Licker4U Send a message via AIM to Licker4U
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..
Licker4U is offline   Reply With Quote
Old 2006-10-29, 01:57 PM   #4
Licker4U
Mean people suck, nice people swallow, are you mean or nice?
 
Licker4U's Avatar
 
Join Date: Sep 2003
Location: Lower Alabama-The Redneck Riviera
Posts: 2,377
Send a message via ICQ to Licker4U Send a message via AIM to Licker4U
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!
Licker4U is offline   Reply With Quote
Old 2006-10-29, 02:51 PM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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>
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2006-10-29, 02:59 PM   #6
Licker4U
Mean people suck, nice people swallow, are you mean or nice?
 
Licker4U's Avatar
 
Join Date: Sep 2003
Location: Lower Alabama-The Redneck Riviera
Posts: 2,377
Send a message via ICQ to Licker4U Send a message via AIM to Licker4U
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>

Quote:
Originally Posted by cd34 View Post
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?

Last edited by Licker4U; 2006-10-29 at 03:03 PM..
Licker4U is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:23 PM.


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