Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-02-2001, 04:22 PM   #1
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
htaccess to prevent hotlinking

Anyone have it?

------------------
Cold Sex Partnership - Free Content - 60%
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 04:25 PM   #2
m0rph3us
Confirmed User
 
Join Date: Mar 2001
Location: Principality of Sealand
Posts: 2,033
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
RewriteRule /* http://www.domainorpagetoberedirectedhotlinkers.com [R,L]

This prevents all type of hotlinking, even HTML pages...you might wanna modify it to only prevent images and videos like so:

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com
m0rph3us is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 04:44 PM   #3
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
hmm...didnt quite understand that..

------------------
Cold Sex Partnership - Free Content - 60%
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 04:49 PM   #4
X-raid
Confirmed User
 
Join Date: Jul 2001
Location: Sweden
Posts: 328
Put the code in htaccess.txt and upload to the server, rename to htaccess and your done i think... worked for me!
X-raid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:07 PM   #5
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
I know how to use the htaccess part, so I just cut and copy that code?

I know I have to change the URL's, but what's that stuff about hotlinking HTML pages?
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:14 PM   #6
Chris R
Confirmed User
 
Join Date: May 2001
Location: Baltimore, MD USA
Posts: 1,151
don't forget to put the period in front:

.htaccess


Chris R is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:18 PM   #7
X-raid
Confirmed User
 
Join Date: Jul 2001
Location: Sweden
Posts: 328
Aa! thats right, you need to rename it to .htaccess
sorry :-/
X-raid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:21 PM   #8
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
So I just add this?

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.111.111.121/ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://sponsorusually.com


What do I replace the "alloweddomain.com" to? And the "216.111.111.121"?

------------------
Cold Sex Partnership - Free Content - 60%
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:23 PM   #9
X-raid
Confirmed User
 
Join Date: Jul 2001
Location: Sweden
Posts: 328
your url and ip ?
X-raid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:27 PM   #10
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
Ahhh...got ya...

and the sponsorusually?
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:29 PM   #11
X-raid
Confirmed User
 
Join Date: Jul 2001
Location: Sweden
Posts: 328
hmm don't know, can it be the url that hotlinker will go to?
type in your sponsor or someting... well type your mainurl so you don't get any problems from sponsors or someting




[This message has been edited by X-raid (edited 08-02-2001).]
X-raid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2001, 05:38 PM   #12
B40
Confirmed User
 
Join Date: Jul 2001
Posts: 7,020
Ahhh got it. Thanks a lot X-Raid. Appreciate it.

------------------
Cold Sex Partnership - Free Content - 60%
B40 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.