![]() |
![]() |
![]() |
||||
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 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
xxx
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
|
bump
![]()
__________________
The Affiliate Program |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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]] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
xxx
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
|
Quote:
I will test it. ![]()
__________________
The Affiliate Program |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Oct 2002
Posts: 477
|
I see you already got your assistance...
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Pornblogspace.com
Posts: 334
|
![]() 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 ![]()
__________________
![]() Superior Blogging Scripts | Porn Blog Space - not just another free blog hosting! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
xxx
Industry Role:
Join Date: Jun 2003
Location: UK
Posts: 31,547
|
__________________
The Affiliate Program |
![]() |
![]() ![]() ![]() ![]() ![]() |