I'm sure most of you will go "woopdeedoo"
I guess I just never noticed it because of the . in front hiding for telnet.
Anyway, the reason for my post is that I am changing hosting providers. One of the questions I asked is "do you provide hot link protection" which is on my control panel. I type in the portion of the site to protect from scrapers and the extentions to prevent scraping of (I still allow .PDFs to be linked directly like .html pages).
Many said that they don't have this but I can use the .htaccess file.
This is what I found it translates to in my .htaccess file:
RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mysite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ 404.shtml [R,NC]
this results in any site that tries to grab your files with the extensions you select (.jpg, .bmp, etc) to get a 302 error and not send the file.
Anyone visiting your site doesn't get this since the media gets are from your own pages.
The other thing I asked them is if they have the IP Deny thing.
This was simple, you typed the #s on the screen but it translates as something like this in the .htaccess file so you certainly could do this manually:
(the below is of course a made up range from an internal net so we don't upset any hacker scum on any criminal servers):
deny from 192.168.72.0/24
I have literally hundreds of ranges banned so is good to know how to do this.
The other thing I ask for, and they have this, is to get access to my raw log files so I can run my own progs to separate the data.
Should I edit the .htaccess on my PC and re-ftp it over? or should I used one of linux's editors right on the server?