![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jul 2001
Posts: 7,020
|
htaccess to prevent hotlinking
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2001
Posts: 7,020
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2001
Location: Baltimore, MD USA
Posts: 1,151
|
don't forget to put the period in front:
.htaccess |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jul 2001
Location: Sweden
Posts: 328
|
Aa! thats right, you need to rename it to .htaccess
sorry :-/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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% |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jul 2001
Location: Sweden
Posts: 328
|
your url and ip ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jul 2001
Posts: 7,020
|
Ahhh...got ya...
and the sponsorusually? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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).] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
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% |
![]() |
![]() ![]() ![]() ![]() ![]() |