It looks like you're new here. If you want to get involved, click one of these buttons!
Hey
I have a question, Is there any way to only allow .html or .php to be opened, and block .zip .tar etc?
mime types?
http://danielmeah.gb.net/ < My Blog
@DanielM said: mime types?
wut?
rm -rf *.zip rm -rf *.tar
@joodle said: Is there any way to only allow .html or .php to be opened, and block .zip .tar etc?
I assume you meen stopping specific content. This can be done by editing mime types (Like on IIS)
Perhaps you're English isn't the best.
http://forum.nginx.org/read.php?2,61581,61740
I think that has all the answers you are looking for
@ gsrdgrdghd Thanks will try that when im back at my pc
Or use a location directive:
location ~ \.(tar|zip)$ { deny all; }
@sleddog said: Or use a location directive:
OR
location ~* \.(tar|zip)$ { deny all; }
For case insensitive.
PHP Looking Glass
Comments
mime types?
http://danielmeah.gb.net/ < My Blog
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankswut?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksrm -rf *.zip rm -rf *.tar
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI assume you meen stopping specific content. This can be done by editing mime types (Like on IIS)
Perhaps you're English isn't the best.
http://danielmeah.gb.net/ < My Blog
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankshttp://forum.nginx.org/read.php?2,61581,61740
I think that has all the answers you are looking for
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@ gsrdgrdghd Thanks will try that when im back at my pc
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksOr use a location directive:
location ~ \.(tar|zip)$ { deny all; }- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksOR
location ~* \.(tar|zip)$ { deny all; }For case insensitive.
PHP Looking Glass
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks