`
jeru
  • 浏览: 28527 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

Hide your resource

阅读更多
如何隐藏你的资源不让人知道他的位置,同时阻止一般菜鸟的下载,可以通过脚本输出指定 mime type 的流文件到浏览器上.
 
例如, 创建image.php, 操作已经存在的GIF图像
header('Content-type: image/gif'); // specified mime type
readfile($image_url); // output to the browser, either provide the resource url or relative path
exit(0);
 
Content-type可以是任意资源,也包括js, css等
 
需要引用图片的时候:
<img src="image.php">
分享到:
评论

相关推荐

    wxPython 2.8 Application Development Cookbook (含源码)

    Enhance design and layout, hide and show controls dynamically during runtime by using sizers Create a custom XRC resource handler class to use custom widget classes in XRC Simplify window layout ...

    Object Oriented Programming with Swift 2

    You will learn to protect and hide data with the data encapsulation features of Swift. Then, you will explore how to maximize code reuse by writing code capable of working with objects of different ...

    SkinEngine3.4.7

    + Fixed: Scrollbars not hide in Memo, ListView, TreeView, ScrollBox # Technical Support # Technical support for KSDev software is provided through email and newsgroups on our news server. For ...

    skinengine

    + Fixed: Scrollbars not hide in Memo, ListView, TreeView, ScrollBox # Technical Support # Technical support for KSDev software is provided through email and newsgroups on our news server. For ...

    Stackoverflow喜欢「Stackoverflow Likes」-crx插件

    Help developers to search and collect resource, super easy to use 快速搜尋 Stack Overflow 讓你方便記錄喜歡的 Stack Overflow 回答 超好用的書籤功能 整理開發記錄時可以省去很多搜尋的時間 方便的預覽和匯出...

    cuteEditor6.0

    set the controls width, disable image uploading and deleting, restrict access to the source/preview tabs, hide buttons and lists that you don't want your clients to see or access. 支持...

    Visual C++ 编程资源大全(英文源码 其它)

    IncPrivateBuild.zip An add-in to automatically increment the PrivateBuild field in your applications resource file.(34KB)&lt;END&gt;&lt;br&gt;72,level.zip An add-in that helps you hide 'inactive' pieces of ...

    在Java程序前添加一个闪屏

    然后,通过`java -jar yourapp.jar`来运行程序,闪屏将会在启动时自动显示。 总的来说,创建Java程序的闪屏涉及到界面设计、线程控制和资源管理等多个方面。通过合理的编程和适当的动画效果,你可以为用户提供一个...

    VideoView的转屏处理技巧

    videoView.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.video)); videoView.start(); ``` 接下来,处理屏幕旋转。Android系统默认会在屏幕旋转时重新创建活动(Activity),...

    Richfaces标签

    &lt;rich:panelBarItem label="Write your own custom rich components with built-in AJAX support"&gt; Component Development Kit (CDK) is a design-time extension for Ajax4jsf. The CDK includes... In ...

    richface标签.doc

    Resource framework can generate images on-the-fly so that it becomes possible to create images using the familiar approach of the Java graphic2D library. ``` #### 六、`rich:panelMenu` 标签 `...

    Visual C++ 编程资源大全(英文源码 表单)

    10.zip Bitmap Dialog Class 位图对话框类(13KB)&lt;END&gt;&lt;br&gt;11,11.zip Class for Browsing shell namespace with your own dialog 显示目录的树型结构, 可用于目录的选择(31KB)&lt;END&gt;&lt;br&gt;12,12.zip ...

    jquery删除确认提示信息框特效代码

    url: "/api/your-resource/" + resourceId, success: function() { // 删除成功后的操作 }, error: function() { // 处理错误情况 } }); ``` 以上就是使用jQuery实现删除确认提示信息框的基本步骤和涉及的...

    java pdf 查看器

    * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied ...

    EhLib 9.1.024

    Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and data rows. Allows to draw memo fields. Multiline inplace editor....

    ehlib_vcl_src_9_3.26

    Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and data rows. Allows to draw memo fields. Multiline inplace editor....

    EurekaLog_7.5.0.0_Enterprise

    24)..Added: EResLeaks improvements (new funcs: ResourceAdd, ResourceDelete, ResourceName; support for realloc-like functions) 25)..Fixed: Added workaround for bug in JIRA 5.x 26)..Fixed: Rare ...

Global site tag (gtag.js) - Google Analytics