Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-09-2002, 10:45 AM   #1
vegasdude
Confirmed User
 
Join Date: Jul 2001
Location: The Royal Family Crew
Posts: 3,649
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
vegasdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 10:47 AM   #2
Pipecrew
Master of Gfy.com
 
Pipecrew's Avatar
 
Industry Role:
Join Date: Feb 2002
Posts: 14,887
do a search on Ynot or cyberage or Yahoo, there is too many examples
Pipecrew is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 11:16 AM   #3
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
ICQ me and I'll give you 1..

or repost your email address so I can read it.
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 11:18 AM   #4
pipp
Confirmed User
 
Join Date: Oct 2001
Location: Where the sun don't shine
Posts: 1,185
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
pipp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 03:19 PM   #5
railz
Confirmed User
 
Join Date: Nov 2001
Posts: 2,531
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.
__________________
This Space for Rent
railz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 03:36 PM   #6
pipp
Confirmed User
 
Join Date: Oct 2001
Location: Where the sun don't shine
Posts: 1,185
raliz heres the short version http://www.webpimps.com/scripts/htaccess/
pipp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 03:57 PM   #7
RK
Confirmed User
 
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
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.
__________________
Does anyone look down here?
RK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 04:00 PM   #8
vegasdude
Confirmed User
 
Join Date: Jul 2001
Location: The Royal Family Crew
Posts: 3,649
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
__________________
Did you fucking talk to me??!
Who the fuck told you to talk to me??!"
vegasdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 04:41 PM   #9
pipp
Confirmed User
 
Join Date: Oct 2001
Location: Where the sun don't shine
Posts: 1,185
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
pipp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-09-2002, 05:26 PM   #10
RK
Confirmed User
 
Join Date: Aug 2001
Location: In a Bunker
Posts: 868
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".
__________________
Does anyone look down here?
RK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.