![]() |
lane or some1 with .htaccess skillz
Hi all,
short I just started a teen site and need .htaccess for my images so they cannot be hotlinked... I got nada .htaccess experience so if anyone could post step by step + what should stand in the .htaccess txt file (and what to call it) just need to only allow images to be shown on my domain... Thanks in advance... Vegaz p.s Im at nt host at prohosters :) |
do a search on Ynot or cyberage or Yahoo, there is too many examples
|
ICQ me and I'll give you 1..
or repost your email address so I can read it. |
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://0.0.0.0.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://0.0.0.0:80.*$ [NC] RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/hotlinkers.html Works like a charm. Just replace the domain and ip with your domain and ip. You should have a time based redirect as well wich trows the hotlinkers to a url of your choise |
Quote:
|
raliz heres the short version http://www.webpimps.com/scripts/htaccess/
|
A few notes:
1) There is no point in adding :80. People type http://yahoo.com, not http://yahoo.com:80 2) There is no point in including the IP of the domain, again people access the web site using the domain name. If by "p.s Im at nt host at prohosters " you mean that you are on a Windows NT server running Internet Information Server, then this thread will not help you, it does not support .htaccess. |
RK finnaly some1 found out that........
I just started another thread about it...lol and now this is on top again.... hmmm I need somekind of asp script but my host could not remember name/or script.... Vegaz |
Quote:
|
Quote:
All that matters is the HTTP_REFERER header. If the address bar shows http://www.gofuckyourself.com/ then the referer will be "http://www.gofuckyourself.com/" and not "http://66.60.188.13:80". |
| All times are GMT -7. The time now is 02:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123