![]() |
some htaccess info for the newbies. Fun stuff.
Hi.
I'm sure most of you have htaccess files on your servers for various redirects and image protection. For the newbies this lesson can be a painful one. I have a domain that has just a couple of galleries on it. It's one of those sites that I'm "supposed to get to". Anyway, some fucker assholes were hotlinking that gallery. I just now noticed it in my stats. First thing up. Toss a generic htaccess into that main directory to prevent them from hotlinking. Second thing up, find the most disgusting pic on thie internet and use that as a rewrite rule. :) Here is a basic example of what you new guys and gals should have in your haccess files. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://IP/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.IP/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.domain.com/nasty.jpg [R,L] it's probably overkill to use the IP as well, but that's just how I was learned. All you do is add your domain, and add a disgusting pic.. or even a banner if you want. :) (always thinkin' of the dollar) Just save that to a text file call it htaccess.txt and then upload it to your directories. Then rename it on your server to .htaccess Note that you can't server your nasty.jpg from a place where you have antihotlinking. So it's best to have the nasty.jpg in the root. I say fuck 'em I go for the gross pic. My nasty pic is of a jumper. GROSS!!! They guy is totally mushed up and .. just gross. Anyway, fuck the hotlinkers. Have fun. Enjoy. ...and if you come to a sex site and see a pic of a jumper with his guts all over the road, just think of me and smile. :) |
i wouldnt want to waste my bandwidth on a gross pic. i just redirect them to a sponsor code or something else that will make me money.
|
Quote:
|
Quote:
:thumbsup It's not all about money. That's why I love you brother Redshoe. |
RE: " It's not all about money. That's why I love you brother Redshoe."
Redshoe is a nice man! :) >>>>Winners "WIN" because they "NEVER GIVE UP!"<<<< |
Newbie type question.
Does this then also protect subdomains? And for someone posting galleries to TPG's are there instances where hotlinking is required? |
Can I see the jumper pic? :upsidedow
|
Thanks DWB. You and I are truly brothers from other muthas.
Quote:
htaccess can protect an entire domain, or just a certain folder. And as far as I know you should never have to hotlink anything when posting to a TGP. Your gallery should have all the images and thumbs right there in that folder. It gets too messy any other way. As for your recips they are linked from within your own domain, so that shouldn't be a problem. However... if for whatever reason you would need to hotlink, or allow yourself to be hotlinked, just add that domain into the htaccess. Just add lines like this. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://IP/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.IP/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://domain1.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain1.com/.*$ RewriteCond %{HTTP_REFERER} !^http://domain2.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain2.com/.*$ RewriteCond %{HTTP_REFERER} !^http://domain3.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain3.com/.*$ RewriteCond %{HTTP_REFERER} !^http://domain4.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain4.com/.*$ RewriteRule \.(gif|jpg)$ http://www.domain.com/nasty.jpg [R,L] |
Thanks for the info :thumbsup
|
i use antihotlinking.com for movies and jpgs
and every thing pretty much |
thanks for your tips
|
Quote:
|
good way to get rid of fusker leachers
|
Thanks for the tip.
I saw that some people hotlinks gallerie's full size pics on boards n things like that... |
How do you handle the people that come to your site but block their referer.
Do they get the nasty pic and is that a smart thing? |
Quote:
|
Quote:
|
| All times are GMT -7. The time now is 03:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123