GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   What is htaccess exactly and where do I get it??? (https://gfy.com/showthread.php?t=37675)

dank 08-27-2001 11:07 AM

What is htaccess exactly and where do I get it???
 
Someone posted a message to me and said I should get htaccess for my content site to protect my shit from being stolen by any dickhead thiefs out there.

Does anyone know how it works and where i can get htaccess????

Rocky 08-27-2001 11:11 AM

this is a very informative thread about .htaccess Dank
http://www.tgpowners.com/members/ubb...ML/000053.html

------------------
Proud Member Of The Thumb Lords</FONT>

Chris R 08-27-2001 11:14 AM

All it is is a text file you put in your root directory on unix servers and it will protect from that directory on down.

Make a file and put the following in it:

RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://.*yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/ [R,L]

Put your domain's IP address in xxx.xxx.xxx.xxx. Save it to a text file - upload it in ascii and then change it to:

.htaccess

and there ya go

------------------
TopBucks.com - Converting at better than 1:130
David Lace Content - Highest Quality Teen Content
ConversionCash.com - Make Money off your WebTV Traffic

dank 08-27-2001 11:14 AM

Cool!
Thanx Rocky!!

Rocky 08-27-2001 11:27 AM

no problem Dank

hope it answers all of your questions

------------------
Proud Member Of The Thumb Lords</FONT>

dank 08-27-2001 11:34 AM

and Thanx to you too Chris R!

All very good info!

Much needed and much appreciated! http://bbs.gofuckyourself.com/board/biggrin.gif

Amputate Your Head 08-27-2001 11:35 AM

Quote:

Originally posted by Chris R:
upload it in ascii
VERY important dank.... or it won't work.

SonOfRage 08-27-2001 08:54 PM

RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://.*yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/
[R,L]

This is cool, but it also prevents people linking to your galleries. I need TGP's to be able to link to my galleries.

Anyway to rewrite this to only block images?

Thanks http://bbs.gofuckyourself.com/board/smile.gif

Chris R 08-27-2001 09:08 PM

That allows them to link to your galleries, it just doesn't let someone steal your pictures.

Anotherwords, I can link to your site just fine, but if I try to link your image from MY SITE, it won't work.

[a href"your site"]

ok

[img src"image from your site"]

not ok



------------------
TopBucks.com - Converting at better than 1:130
David Lace Content - Highest Quality Teen Content
ConversionCash.com - Make Money off your WebTV Traffic

SonOfRage 08-27-2001 09:19 PM

Quote:

Originally posted by Chris R:
That allows them to link to your galleries, it just doesn't let someone steal your pictures.

Anotherwords, I can link to your site just fine, but if I try to link your image from MY SITE, it won't work.

[a href"your site"]


ok

[img src"image from your site"]

not ok



Hmm...didnt seem to work for me. My images were protected...but I also checked to see if my galleries would load from a TGP. All links to my galleries from the TGP gave me an Internal Server Error. http://bbs.gofuckyourself.com/board/frown.gif

Chris R 08-27-2001 09:20 PM

To see why this is a problem - look at these thieves:
http://www.bojue.com/big5/board/board1/data/

I bet every page in there is hotlinking to graphics - here is what happened to me:
2 37100 0.83% http://www.bojue.com/big5/board/board1/data/18243.html
3 18455 0.41% http://www.persiankitty.com/
4 16899 0.38% http://www.dudu-sex.com/board1/data/855.htm
5 16588 0.37% http://www.thumbzilla.com/main.html

This was before I installed hotlinking protection. Notice the assholes from 2 and 4 were stealing more from me than legitimate sites were giving me such as persian kitty and the like.

I think they should be shut down, but no one cares. Auston hosts one of them, and did remove the offending page after I emailed them.

------------------
TopBucks.com - Converting at better than 1:130
David Lace Content - Highest Quality Teen Content
ConversionCash.com - Make Money off your WebTV Traffic

Chris R 08-27-2001 09:24 PM

Do you have the [R,L] on the same line like my example and not like yours? Not sure if it would matter, but give it a try if you do. I know it works for me. I would try contacting your host if it still doesn't work.

SonOfRage 08-27-2001 09:36 PM

BAM!!! That's it!!

works now!!! When I coppied it from the board then pasted it to my txt file...it had all these spaces and stuff. I removed all the spaces and put the [R,L] on the same line like you said...now it works!!!!

Thanks a bunch!!!! http://bbs.gofuckyourself.com/board/smile.gif

jimmyf 08-27-2001 10:00 PM

would i put the above code anywere in this
.htaccess

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName browsing
AuthUserFile /webadmin/home/pub/jimmyf/public_html/_vti_pvt/service.pwd
AuthGroupFile /webadmin/home/pub/jimmyf/public_html/_vti_pvt/service.grp

Thanks

Jim

Chris R 08-27-2001 10:04 PM

No problem SonOfRage... JimmyF, I do not know for sure - as I have heard of problems with the front page thingie, but don't remember what I read. I also don't know what that index ignore thing does.

If your graphics are in a subdirectory - you night want to just try using a seperate .htaccess (just like the ones written above) on that directory and see if you have any problems - or ask your host.

jimmyf 08-27-2001 10:09 PM

I put the above code in the folder were my pics are and got the below error.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you
might have done that may have caused the error.

More information about this error may be available in the server error log.

[This message has been edited by jimmyf (edited 08-27-2001).]

yys 08-27-2001 10:50 PM

Here's a trick I think you can use with .htaccess, not sure as I haven't done it myself though. Allow the pricks to link your thumbnails but when the surfer on their gallery/site clicks the thumb to see the picture have the .htaccess file direct them to one of your sites or a sponsor.

yys 08-27-2001 10:54 PM

I forgot to put this up in post. It's the .htaccess file I use.
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/
RewriteCond %{HTTP_REFERER} !^http://yourserverip/
RewriteRule /* http://www.karasxxx.com/potd/enter.shtml?xxx/



[This message has been edited by yys (edited 08-27-2001).]

Chris R 08-27-2001 10:55 PM

The problem with that is all the people that have hotlinked me hotlinked the full images. All 30k a piece and put them up one after another. I have larger galleries than most so this was 23 images.

Make sure you transfer in ascii and that you have no space problems (not HD SPace, but spacebar space).

------------------
TopBucks.com - Converting at better than 1:130
David Lace Content - Highest Quality Teen Content
ConversionCash.com - Make Money off your WebTV Traffic


All times are GMT -7. The time now is 04:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123