GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   lane or some1 with .htaccess skillz (https://gfy.com/showthread.php?t=53146)

vegasdude 03-09-2002 10:45 AM

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 :)

Pipecrew 03-09-2002 10:47 AM

do a search on Ynot or cyberage or Yahoo, there is too many examples

jimmyf 03-09-2002 11:16 AM

ICQ me and I'll give you 1..

or repost your email address so I can read it.

pipp 03-09-2002 11:18 AM

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

railz 03-09-2002 03:19 PM

Quote:

Originally posted by pipp

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

Time-based redirect? Could you elaborate on this for me? I'm having a huge problem with a large amount of no ref hits on my sites and I'd be interested in learning more.

pipp 03-09-2002 03:36 PM

raliz heres the short version http://www.webpimps.com/scripts/htaccess/

RK 03-09-2002 03:57 PM

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.

vegasdude 03-09-2002 04:00 PM

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

pipp 03-09-2002 04:41 PM

Quote:

Originally posted by RK
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.

Not true it doesnt mather what you type. Somtimes the surfers browser will access material on your host with the ip and domain:80 Thats why it should be added

RK 03-09-2002 05:26 PM

Quote:

Originally posted by pipp
Somtimes the surfers browser will access material on your host with the ip and domain:80 Thats why it should be added
The browser will always connect to the IP (domain --> IP) and to port 80 (HTTP port) but that makes no difference whatsoever in this case.

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