Security Question About Htaccess Modifications

Hi everybody,

I’m trying to install the php-batik export server from highchart.

I put the index.php file in the protected/extensions/highchart/exporting-server/ directory.

When I tried to export an Image from the graph, I got a forbidden acces error.

So I modified the protected/.htacces file adding after deny from all.

Now, it’s working.

My question is : is this secure? Is this the right solution?

Because I’m not good about security questions.

Thanks a lot for your answers!