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 Mark Forums Read
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 06-16-2004, 12:18 PM   #1
DVTimes
xxx
 
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
code help needed

How simple is it to set up hotlink prevention?

I am only wanting to add the code to one page but not bothered if the rest of the site has some sort of hotlink stopper on it.

Is it a simple code or do I need to get hold of a fancy script?
__________________
The Affiliate Program
DVTimes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 12:38 PM   #2
DVTimes
xxx
 
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
bump
__________________
The Affiliate Program
DVTimes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 12:41 PM   #3
skinnay
Confirmed User
 
Join Date: Apr 2004
Location: NEW YORK CITY
Posts: 2,274
assuming you're using apache, you just need to install mod_rewrite and use .htaccess to do the job. just look on google for an example
__________________
Make Real Green with ORGANIC SEO | Blog post exchange | Non-index page trades | A-B C-D Trades [icq: 194-215-962] [mail: [email protected]]
skinnay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 01:17 PM   #4
DVTimes
xxx
 
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
Quote:
Originally posted by skinnay
assuming you're using apache, you just need to install mod_rewrite and use .htaccess to do the job. just look on google for an example
cool

I will test it.
__________________
The Affiliate Program
DVTimes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 01:24 PM   #5
DVTimes
xxx
 
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
In case others want the code, this is it:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?dvtimes.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.dvtimes.com/nasty.gif [R,L]

Then save as .htaccess

Chance dvtimes to your site name, and add your own pic, save as nasty.gif
__________________
The Affiliate Program
DVTimes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 02:04 PM   #6
dimonka
Confirmed User
 
Join Date: Oct 2002
Posts: 477
I see you already got your assistance...
__________________

Find out what REBILLS are!
dimonka is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 11:52 PM   #7
kaktusan
Confirmed User
 
kaktusan's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Pornblogspace.com
Posts: 334
:stoned

Yea these .htaccess things work...but I suppose they work only for images... how about movies? I think you must have something special for the movies....
If you need more help request it
We will help
kaktusan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-16-2004, 11:55 PM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
movies is different, because it sends different referals everytime. can send a blank refer, can send a WMP refer. can send a website refer. i will give some code.

http://www.videodump.com/htaccess.txt

that allows linking locally so files have to be loaded from your server only
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-17-2004, 12:43 AM   #9
DVTimes
xxx
 
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
cool

.
__________________
The Affiliate Program
DVTimes 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
Thread Tools



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.