Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-09-28, 08:45 PM   #1
Tart
When life hands you lemons, squirt the juice in your enemy's eyes
 
Tart's Avatar
 
Join Date: Apr 2003
Location: Sunny South
Posts: 423
Send a message via ICQ to Tart
Unhappy 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!
Tart is offline   Reply With Quote
Old 2003-09-29, 06:56 PM   #2
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
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.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-29, 07:09 PM   #3
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Once you set it up (not difficult) you just add a line for each new domain you wish to block/redirect |rasta|
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
Old 2003-09-29, 08:23 PM   #4
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Quote:
Originally posted by Surfn
Once you set it up (not difficult) you just add a line for each new domain you wish to block/redirect |rasta|
Can you point me in the direction of how to set it up?
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-29, 08:28 PM   #5
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
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
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
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
Old 2003-09-29, 09:36 PM   #7
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
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.
__________________
This is me Mark's-Links
dareutwo is offline   Reply With Quote
Old 2003-09-29, 10:06 PM   #8
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-09-29, 11:03 PM   #9
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
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
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-09-30, 01:18 PM   #10
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Awesome everyone! Thanks so much! I swear this board is the most helpful place on earth.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-30, 01:22 PM   #11
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Quote:
Originally posted by topsmutlinks
Awesome everyone! Thanks so much! I swear this board is the most helpful place on earth.
When you feel comfy with this level I have code for the advanced level that I can help you with too. Good luck!
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
Old 2003-09-30, 01:28 PM   #12
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
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.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-30, 01:34 PM   #13
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Quote:
Originally posted by topsmutlinks
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.
That's usually done with spiders. Do you know how to write text to tell spiders to follow or not follow the page/site?

This will keep them out. BUT it will keep SE spiders out as well. Keep that in mind:

<meta name="copyright" content=" This web page is copyrighted and the property of the author. Copying and distribution is forbidden without prior permission ">


<meta name="robots" content=" NOINDEX,NOFOLLOW ">

__________________

Surfn's Links Are you a partner?


Last edited by Surfn; 2003-09-30 at 01:39 PM..
Surfn is offline   Reply With Quote
Old 2003-09-30, 01:38 PM   #14
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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]
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-09-30, 02:56 PM   #15
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Quote:
Originally posted by Surfn
That's usually done with spiders. Do you know how to write text to tell spiders to follow or not follow the page/site?

This will keep them out. BUT it will keep SE spiders out as well. Keep that in mind:

<meta name="copyright" content=" This web page is copyrighted and the property of the author. Copying and distribution is forbidden without prior permission ">


<meta name="robots" content=" NOINDEX,NOFOLLOW ">
If I put this on my members page though, will it keep out the download spiders and search engines couldn't get to them anyway due to the password protection right?
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-30, 02:59 PM   #16
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
htaccess will keep out the spiders if it is used to passoword protect a directory.

Spiders don't do password protected directories.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-09-30, 02:59 PM   #17
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Okay I think what Cleo is saying is sinking in. I'm so code-illiterate. It's my biggest weakness in this business.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2003-09-30, 03:02 PM   #18
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Quote:
Originally posted by topsmutlinks
If I put this on my members page though, will it keep out the download spiders and search engines couldn't get to them anyway due to the password protection right?
Yeppers, you don't want anything in the members area other than the members. if you allow SE's to index them then you have surfers coming to that page without paying. In which case you want them to see your 404 (which,in my case, is the same as my join page) HTH
__________________

Surfn's Links Are you a partner?

Surfn is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc