In Progress

.htaccess work

I need the code for an .htaccess file written, that will either prevent upload of certain filetypes to a directory, or re-name them and render them useless.

## Deliverables

I need an .htacess coding, which results in the following:

prevents the upload of certain designated filetypes (e.g. php) to a directory and all sub-directories beneath it

Alternatively, if prevention cannot be achieved, it must prevent the designated filetype being accessed over the web and executed

It must allow remainging non specified filetypes to show properly.

I had tried the following code , but it seems to prevent all filetypes showing including images:

RewiteEngine On

RewriteCond %{REQUEST_METHOD} ^PUT$ [OR]

RewriteCond %{REQUEST_METHOD} ^MOVE$

RewriteRule ^/files/(.*)\.php /files/$[url removed, login to view]

Skills: Amazon Web Services, Engineering, PHP, Project Management, Script Install, Shell Script, Software Architecture, Software Testing, Web Hosting, Website Management, Website Testing

See more: render work, rewriterule htaccess, php render images, rewriterule images, upload files htaccess, rewriterule directories, htaccess work, htaccess upload file, htaccess php file upload, htaccess file php, file upload htaccess, php upload htaccess, php upload file htaccess, htaccess work, rewriterule, htaccess rewriterule, htaccess rewriterule images, htacess

About the Employer:
( 156 reviews ) United Kingdom

Project ID: #3803648

Awarded to:

cmcs

See private message.

$29.75 USD in 3 days
(58 Reviews)
4.9

12 freelancers are bidding on average $29 for this job

mmuhasan

See private message.

$15.3 USD in 3 days
(156 Reviews)
6.8
toinnisfreesl

See private message.

$42.5 USD in 3 days
(38 Reviews)
5.3
robbikurniawan

See private message.

$25.5 USD in 3 days
(13 Reviews)
4.8
intellitekllc

See private message.

$25.5 USD in 3 days
(6 Reviews)
4.1
jazzmusicman

See private message.

$42.5 USD in 3 days
(31 Reviews)
4.3
DaLiV

See private message.

$25.5 USD in 3 days
(14 Reviews)
3.9
uvwebs

See private message.

$42.5 USD in 3 days
(19 Reviews)
3.1
wintechmadurai

See private message.

$38.25 USD in 3 days
(28 Reviews)
3.8
cornersoft

See private message.

$8.5 USD in 3 days
(11 Reviews)
2.3
droet

See private message.

$34 USD in 3 days
(0 Reviews)
0.0
elitstudio

See private message.

$21.25 USD in 3 days
(0 Reviews)
0.0