protect

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

8 replies · 1,063 views · started 17 years ago · 1 min read

9 participants
dominik92r Junior · 38 posts #1

Welcome gentlemen. I have a question as to protect the shell script upload php. sorry my english is bad.

amylee Principal · 1,092 posts #2

simple.. don't have an uploader on your site/s

honkytonkman Senior · 252 posts #3

eh eh..what a kind of houmor..ehm 🙂 but i think that anybody would answer like this this forum had no reason to live.. if we were all genius CODING TALK could be only a talking forum about weather.. to ask is a right, to answer (gently) is a rule.. especially when somebody ask with education as dominik. tha's my opinion,of course..ev'ry body can think as he wanna .. 🙂

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

GiLL Senior · 356 posts #4

there are many ways such as turn on open_basedir etc

left wap stuff

CreativityKills Lead · 833 posts #5

AddHandler application/x-hxxx-spoof .bs .cgi .pl .py

u can also use .htaccess to add a bogus handler for other file extensions.

Anshul Senior · 296 posts #6

you can disable execution of sh files by adding this to ur htaccess

Options -ExecCGI  
AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi

search about magic numbers 🙂

blockerhead Junior · 36 posts #7

Create a .htaccess file in your directory where the files are stored from uploader, with this code inside

RemoveHandler .php .phtml .php3 .php4 .php5 .php6 .phps .cgi .exe .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType application/x-httpd-php-source .php .phtml .php3 .php4 .php5 .php6 .phps .cgi .exe .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
php_flag engine 0

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close