![]() |
please give me some tips about htaccess
Dear all surfers of gofuckyourself
I am just a rookie in this business and i just want to know some tip about the htaccess. i have a site for moviepost and i have got a lot of hot link. But when i put the htaccess on the movie folder, some surfers complain that they could not watch the movies. So, Do you guy knows any tips for htaccess to prevent this kind of problems? Otherwise, How can i change htaccess from allowing only people who came from my domain to watch the movies to prohibit all surfers who came from websites that hot link my sites? Please help me:helpme |
post your current htaccess and show me your tits
|
can't be done
|
Heer is my htaccess
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com [NC] RewriteCond %{HTTP_REFERER} !^http://mydomain.com [NC] RewriteRule [^/]+\.(exe|mpeg|mpg|avi|mp3|gif|jpg|JPG|GIF|MP3|AVI)$ - [F] RewriteRule ^/cgi-bin/.+$ - [F] #ErrorDocument 403 http://www.yahoo.com #ErrorDocument 404 http://www.yahoo.com #ErrorDocument 500 http://www.yahoo.com But my friend tell me that if i want to prohibit hot link from http://www.j-movies.com ihave to right this RewriteCond %{HTTP_REFERER} ^http://www.j-movies.com [NC] (just remove the "!" from RewriteCond) Is that true? |
Quote:
|
Quote:
its alot different then mine but it could work |
-----------
Options +FollowSymlinks ErrorDocument 401 /errordocs/404.htm ErrorDocument 403 /errordocs/404.htm ErrorDocument 404 /errordocs/404.htm ErrorDocument 500 /errordocs/404.htm RewriteEngine On RewriteOptions inherit RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://yourdomain.com.*$ [NC] RewriteRule .*\.(gif|GIF|jpg|JPG|zip|ZIP)$ /errordocs/404.htm [R,L] ------------ maybe ? |
Some of my frined tell me that I should use the cookie by using this code
RewriteEngine on RewriteOptions inherit RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*mydomainname.com/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=mydomainname(;.*|$) RewriteRule /*$ http://www.yahoo.com [L,R] and i have tp place code listed bolow before the </head> on every html pages hahahahahahahaha LANGUAGE="hahahahahahahahahaha"> // Calculate the expiration date var expires = new Date (); expires.setTime(expires.getTime() + 1 * 60 * 60 * 2); documenthahahahahahahaha = "id=mydomainname; path=/" + "; expires=" + expires.toGMTString(); </hahahahahahahaha Is this also true? Because he claims that this will allow all surfers that came from my site to view the movies and preventing 100% of hotlinks. It seem so good to be true. |
please replece the first hahahahahahahaha with <SCRlPT and
please replece the second hahahahahahahaha with ja\/ascript. |
please replece the first hahahahahahahaha with SCRlPT and
please replece the second hahahahahahahaha with ja\/ascript. |
I concur. I have had to do all that shit with mod_rewrite with videos and cookies is the best.
|
iam a new-b with htaccess
wtf is that ? |
All times are GMT -7. The time now is 09:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123