⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 publicfiles_htaccess.txt

📁 一款文件上传程序
💻 TXT
字号:
# Disable listing of user files
DirectoryIndex index.php
Options -Indexes

# Disable php in userfiles directory (recommended!!!!)
RemoveType php
<IfModule mod_php4.c>
  php_flag engine 0
</IfModule>

<IfModule mod_php5.c>
  php_flag engine 0
</IfModule>

# GET requests only
<LimitExcept GET>
  Order Allow,Deny
</LimitExcept>

# Turn on mod_rewrite
RewriteEngine On

# Ignore all thumbnail images
RewriteRule ^(thumb_.+) $1 [L,NC]

# This block will disable image hotlinking. The images will only be viewable
# through a page on your site. This will enable you to put ads or whatever you want
# around the image. If you disable this, the images can be viewed directly.
# To enable/disable, uncomment/comment out the last two lines of this block, respectively.
# Enter your domain name in the line that starts with RewriteCond. Here are some examples:
# Example 1: RewriteCond %{HTTP_REFERER} !^http://(www\.)?celerondude\.com/? [NC]
# Example 2: RewriteCond %{HTTP_REFERER} !^http://(www\.)?google\.com/? [NC]
# If you get a 404 error, enter the absolute path to pview.php instead of just ../pview.php.
# RewriteCond %{HTTP_REFERER} !^http://localhost/? [NC]
# RewriteRule ^([0-9]+)/(.+\.(jpe?g|gif|bmp|png))$ ../pview.php?fid=$1&fname=$2 [NC,L]

# Use the uploader to view the image instead of viewing it directly.
RewriteRule ^pview/([0-9]+)/(.+\.(jpe?g|gif|bmp|png))$ ../pview.php?fid=$1&fname=$2 [L,NC]

# Track file view, this is the most important rule.
# If you get a 404 error, enter the absolute path to pfile.php instead of just ../pfile.php.
RewriteRule ^([0-9]+)(/.*)?$ ../pfile.php?fid=$1&fname=$2 [L,NC]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -