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)
-   -   Need .htaccess help (https://gfy.com/showthread.php?t=809341)

DirtyProfits 02-21-2008 06:28 AM

Need .htaccess help
 
What is the correct code to block a site from embedding and hotlinking your movies? I just found out that the .htaccess code I was using somehow doesn't work.

GrouchyAdmin 02-21-2008 06:29 AM

If you wanted to greedily keep your files for yourself, you should have voted Ron Paul.

GrouchyAdmin 02-21-2008 06:35 AM

Damn thing timed out. Oh well. Here.

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$    [NC]
RewriteRule .*\.(gif|jpg|jpeg|wmv|mpg)$ - [F,NC]


DirtyProfits 02-21-2008 06:51 AM

Hm that's exactly what I use, only difference that I only have [F] and not [F,NC]. What does NC mean? Thanks by the way.

GrouchyAdmin 02-21-2008 06:52 AM

NC is "No Case", meaning it works for upper, and lowercase. If you named your files '.JPG' with yours, as you describe it, they would not be protected.

sumphatpimp 02-21-2008 06:57 AM

.htaccess can not be used to block movies since there is no referer.
Google it.

GrouchyAdmin 02-21-2008 07:03 AM

Quote:

Originally Posted by sumphatpimp (Post 13811347)
.htaccess can not be used to block movies since there is no refferer.
Google it.

That generally affects Windows Media Player; and for that, I suggest a passthru script, or using a prerolled protection mechanism that requires a login before you access, such as StrongBox.

However, he hasn't expliticly stated what/where his content was being stolen.

DirtyProfits 02-21-2008 07:21 AM

Content hotlinked from movie galleries. I am using a hotlink protection on my other server but on the new one I did not. Well problem solved thus far, blocked the IP of the site. By the way, why did I see the url of the hotlinking sit in my affiliate program ref stats but not on Google Analytics? I mean if my .htaccess did not work with movies how did they get redirected to the sponsor?

directfiesta 02-21-2008 07:25 AM

Quote:

Originally Posted by GrouchyAdmin (Post 13811369)

However, he hasn't expliticly stated what/where his content was being stolen.

Quote:

Originally Posted by DirtyProfits (Post 13811251)
What is the correct code to block a site from embedding and hotlinking your movies? I just found out that the .htaccess code I was using somehow doesn't work.

:1orglaugh:1orglaugh:1orglaugh

nope, he sure wasn't specific enough .... :upsidedow

GrouchyAdmin 02-21-2008 07:28 AM

Wow, I skimmed a post that didn't earn me any money.

How's your ratio for getting new clients from the states, by the way?

DirtyProfits 02-21-2008 07:48 AM

Quote:

Originally Posted by GrouchyAdmin (Post 13811463)
Wow, I skimmed a post that didn't earn me any money.

How's your ratio for getting new clients from the states, by the way?

From the United States? What do you exactly mean, signups?

GrouchyAdmin 02-21-2008 07:52 AM

Quote:

Originally Posted by DirtyProfits (Post 13811531)
From the United States? What do you exactly mean, signups?

My reply was to DirectFiesta, actually.

He made some rather purile anti-American sentiment threads on nearly a daily basis in the past, so for awhile, I'd follow his posts begging for people to use him as a virtualhost with his prior statements cut-and-pasted where prospective clients could see it.

Net Money 02-21-2008 12:18 PM

The only thing you need to know:

http://www.htaccesstools.com/hotlink-protection


All times are GMT -7. The time now is 03:45 PM.

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