![]() |
Htaccess question, help me out hehe
I know there is an htaccess code to redirect hotlinkers to the url of your choice, Ive been reading tutorials on them, and (call me dumb) I cant get the f'ing thing to work.
Please anyone who knows this code please let me know... I just need the following If users are requesting from goodurl.com/subdirectory then do shit if they are requesting from anywhere else redirect them to here lol thanks AC |
I am also intrested for this,ent help is welcome
|
Something like this would work:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC] Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example). |
That is so qick
Thanx psyko514 |
Quote:
need it to redirect the persons page to page.html not jsut change the image ;) AC |
bump it up
|
REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!
When you are uploading an .htaccess file, it must be done in Ascii mode. ;) |
Quote:
:thumbsup |
Quote:
RewriteCond %{HTTP_REFERER} !^http://32.332.332.32.*$ [NC] |
Quote:
I'm not sure that's possible. |
You cant have hotlinkers redirected to a web page. They are requesting an image, they must get an image back or the web browser will not know how to interperet it, and give back a broken image link.
What we used to do on our freehost is replace the image with a "Hotlinking disabled" image with a nasty assed image that people dont want to look at. |
Quote:
|
replace the hotlinked image with a 3 mil by 3 mil pixels /ok may be a bit smaller ;)/ WHITE jpg or gif. The image's size is tiny and it'll cost you next to nothing in bandwith but it'll slow the hotlinking fucker's page to a crawl ;)
|
google it
|
All times are GMT -7. The time now is 03:45 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123