![]() |
Another download program to add to htaccess
Express WebPictures (www.express-soft.com)
Just got this one in my logs... sigh.. First time I've seen it so I'm not sure if it's new or if it took this long to find me. My list keeps getting longer and longer :( This might be a really good topic for some indepth tips.. or even for a chat. I know that even now I have a hard time protecting my sites without screwing other things up and Oh what a mess when I first started fooling with it! |
I have asked about doing this before and I still haven't done it. I would really appreciate a tutorial or workshop on this because I am so .htaccess ignorant. :(
|
Once you set it up (not difficult) you just add a line for each new domain you wish to block/redirect |rasta|
|
Quote:
|
Here's what one of my servers has on it:
AddType text/x-server-parsed-html .html AddType text/x-server-parsed-html .htm RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://cgcf.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.cgcf.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://co-edsgonewild.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.co-edsgonewild.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://coed-dorm-rooms.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.coed-dorm-rooms.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://exgo.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.exgo.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://girlsgonewildtgp.net.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.girlsgonewildtgp.net.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kltm.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kltm.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://ktej.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.ktej.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://pjfan.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.pjfan.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://pornoisseur.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.pornoisseur.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://pussylicking-lesbians.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.pussylicking-lesbians.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://sexpiate.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.sexpiate.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://sexponent.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.sexponent.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://smutbandit.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.smutbandit.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://wwedivass.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.wwedivass.com.*$ [NC] RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://smutbandit.com Just change the domains to your own HTH |
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 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 :) |
Forgot - change those IP numbers to YOUR domain IP numbers.
IE xxx.xx.xxx.xxx If you don't know Your IP numbers, ask your host. |
Well since we are all doing HTacess examples mine is near the bottom of this page.
http://www.cleos-porn-links.com/adul...ster-help.html Mine does use any wildcards so it is more secure but it does put more load on the sever since there is more lines of code to it. Here is what one of mine looks like. http://cleogoodstuff.com/htaccess.txt |
I know absolutely nothing about this kind of stuff, but someone on this board posted this a while back
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://fullpagead.com [R,NC] I use it briefly for stuff like alltheweb.com's image search crap. I wasn't sure what the implications for google would be so I removed it, but I seem to recall that it just blocked everything instead of trying to catch each domain that's hotlinking. Any of you code gurus care to comment? SS |
Awesome everyone! Thanks so much! I swear this board is the most helpful place on earth. |smooch|
|
Quote:
|
A friend of mine is telling me that putting my domains in there will only prevent hotlinking and not block the software that downloads the entire site in one day. Is this true?
Sorry to keep asking stupid questions. |
Quote:
This will keep them out. BUT it will keep SE spiders out as well. Keep that in mind: |
More info…
Lets look at the first part of mine, ErrorDocument 404 http://www.cleos-porn-links.com/ DirectoryIndex index.html index.php index.shtml index.htm RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com:80.*$ [NC] This part defines my custom 404 page ErrorDocument 404 http://www.cleos-porn-links.com/ This line defines what is a valid index page in a folder DirectoryIndex index.html index.php index.shtml index.htm This line turns on the rewrite engine so that the rest of the code will work RewriteEngine on This line says allows a image to be served with no referral info like if they just typed the URL of a pic RewriteCond %{HTTP_REFERER} !^$ These lines define what is a good referral URL. I have them there 8 times because I do not use wild cards in my htaccess so I have to type every combo that is valid. I do not use wild cards because if you do all someone has to do to get around your htaccess is put their site inside of a folder named after your domain. RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://kinkycleo.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.kinkycleo.com:80.*$ [NC] This is what file extensions it should examine in the rewiteCond and where they should be sent if false. RewriteRule [Ss][Ww][Ff]$|[Jj][Pp][Ee]*[Gg]|[Gg][Ii][Ff]$ http://cleo-says-fuck-you.com/ [R,L] |
Quote:
|
htaccess will keep out the spiders if it is used to passoword protect a directory.
Spiders don't do password protected directories. |
Okay I think what Cleo is saying is sinking in. I'm so code-illiterate. It's my biggest weakness in this business. :(
|
Quote:
|
All times are GMT -4. The time now is 11:20 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc