hotlinking

Prevent hotlinking of Amazon S3 files?

心不动则不痛 提交于 2019-12-18 12:27:39
问题 I'd like to allow anyone to play a video located in my s3 on my site as the src on a <video> tag but not allow people to use it as a src on their site or to play the video directly by typing the url into the browser bar. I don't want people doing this: and I don't want the following HTML to appear on http:// your -site.com but only on http:// my -site.com: <html> <video src="https://s3.amazonaws.com/my-bucket/my-video.mp4"></video> </html> I've seen some SO links on this but I wanted to talk

Stop swf file from being hotlinked

*爱你&永不变心* 提交于 2019-12-13 05:13:58
问题 I would like to know how I can stop other webmasters from hotlinking my flash application and using it on their websites. 回答1: The easiest way to do this is to have your web server code check the HTTP Referer header and block the download if it's not from your site. If you tell us which server-side platform you've got, we may be able to give you a more specific answer than that. 回答2: Have the flash app check the domain and if it fails to be on your domain make it redirect to your site. Let

How to protect images from being hotlinked?

蹲街弑〆低调 提交于 2019-12-12 00:32:21
问题 I have tried the below code in htaccess to stop my images from being hotlinked, but it is not working. SetEnvIfNoCase Referer "^http://www.example.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.example.comm$" locally_linked=1 SetEnvIfNoCase Referer "^http://example.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://example.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1 <FilesMatch "\.(gif|png|jpe?g|css|js)$"> Order Allow,Deny Allow from env=locally_linked

How to prevent hotlinking on standalone Java webapp server?

风流意气都作罢 提交于 2019-12-11 10:09:37
问题 How do you prevent hotlinking on a standalone Java webapp server like Tomcat? 回答1: Use Tuckey's URLRewriteFilter (as mentioned by others already indirectly). From the documentation: <rule> <name>Blocked Inline-Images</name> <note> Assume we have under http://www.quux-corp.de/~quux/ some pages with inlined GIF graphics. These graphics are nice, so others directly incorporate them via hyperlinks to their pages. We don't like this practice because it adds useless traffic to our server. While we

how to generic .htaccess to prevent hotlink

蹲街弑〆低调 提交于 2019-12-10 12:20:05
问题 The following code works fine: RewriteCond %{HTTP_REFERER} !^http://superwebx.com/.*$ [NC] RewriteRule .*\.(jpe?g|gif|bmp|png|swf|css)$ - [F] but I want to make a generic script serve me for several sites I manage, but fails try to get RewriteCond %{HTTP_REFERER} !^http://%{HTTP_HOST}/.*$ [NC] RewriteRule .*\.(jpe?g|gif|bmp|png|swf|css)$ - [F] 回答1: You can't use variables inside the regex. You can work around this by using a RegEx backreference like so: RewriteCond %{HTTP_REFERER} ^https?://(

How To Prevent File HotLink from Internet Download Manager IDM

北慕城南 提交于 2019-12-10 01:47:43
问题 Am having some issue fixing media file hotlink or download using IDM, am working on serving a video file using PHP and it works fine, but I notice that IDM installed on my computer was able to add download box to the video I am playing using jwplayer. I change the structure of code and added htaccess to rewrite the link, so that the direct access to the file is not display. mysite.com/file.php?myvideo.flv -> mysite.com/api/file/JU78vhx5uh I was able to implement this in JWPlayer and it works

Disable hot linking or direct download of my videos and only stream the video when it's displayed from a page in my website

為{幸葍}努か 提交于 2019-12-09 01:47:43
问题 I want to disbale hot linking of FLV and MP4 videos hosted on my server, except when the videos are displayed from a page which its URL starts with : http://www.mywebsite.com/index.php?main_page=videos_page& What are the apache configurations that I have to add to my .htaccess file? 回答1: To disable hot-linking and replace the content with a generic site logo fo sorts to direct people back to your site rather then the image, add this to the .htaccess folde rin the root of your site: Options

Redirecting Hotlinked images with Low Resolution versions

↘锁芯ラ 提交于 2019-12-08 09:39:01
问题 i am working on website of a Digital Gadgets Manufacturer. Product images are hotlinked from hundreds of blogs & forums. which is causing bandwidth issues. we want to replace all hotlinked images with their low resolution versions, using .htaccess means if the hotlinked image path is http://www.example.com/products/gadget123/gadget123.png we want to redirect it to http://www.example.com/images/low-res/gadget123.png hotlinked image paths are different, means they may be from sub-directory of

Can I hide an image path on asp.net page without http Handler?

[亡魂溺海] 提交于 2019-12-07 13:02:31
问题 I have many static images under a directory in my site structure, and I'm not concerned with hotlinking or copy-protecting the images. For a myriad of reasons, what I need to do is not show the image path on the site (or show a fake one). Is there any way to do this without resorting to an http handler or a worker asp.net page? 回答1: You could use URL Rewritting. Doing it yourself would require you to implement a custom handler but there are third party options already available you could try.

Is it bad to hotlink jQuery from jquery.com?

你说的曾经没有我的故事 提交于 2019-12-07 04:31:57
问题 This will probably get a pretty nasty response, but my server isn't the fastest at the moment, and my site loads much faster if I hotlink from the jQuery homepage so they server the content. Is this bad to do? Does jQuery eventually remove those js files from their page? 回答1: Better hotlink it from Google API libraries. Very big advantages: Google is fast and highly available Separate hosts, allows the client to load JQuery simultaneously with your pages and images (browsers support only a