View Single Post
Old 2003-09-29, 09:33 PM   #6
dareutwo
You can't disprove anything with evidence that doesn't exist
 
dareutwo's Avatar
 
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
1.) Create a text file - access.txt (save this to your desktop)
2.) Upload the access.txt file to your server in ASCII Mode (NOT BINARY)
Htaccess will cover Anything below where you put it. Meaning if you have Babes and put the file there, then ANYTHING in Babes will be protected ie

<Babes (htaccess placed here)
<Babes<freesite01
<Babes<freesite02 ....

This one is very simple - copy this into your text file and save it as access.txt

< --- remove this part -->

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.154.11.181/ [NC]
RewriteRule .*\.(gif|jpg|jpeg) http://www.markslinks.com/babes.html [L,R,NC]

<-- I saved this as access.txt then removed this line too -->


Upload the access.txt file into the directory you wish to protect.
Then RENAME the file to DOT htaccess ".htaccess"
When you do this with CuteFTP anyway, you will see the icon of the text file change. (but test your work just to make sure - try typing in the exact url of a picture you want protected)

btw - edit the final URL "where I have my babes.html" to whatever URL you wish to send them to, google, nfl.com, wherever. (do not send them to a sponsor URL unless you are sure it's OK with their TOS - and even then, most browsers won't fill in a full sponsor code meaning you'll just be giving them very unproductive but not worthless traffic)

The above htaccess will NOT stop the actual html page from being loaded. What a hotlinker will see is a page with All the images blocked, But if you have any text links on the html page - they get those
__________________
This is me Mark's-Links
dareutwo is offline   Reply With Quote