Php security question
Posted
by Camran
on Stack Overflow
See other posts from Stack Overflow
or by Camran
Published on 2010-05-30T11:09:09Z
Indexed on
2010/05/30
11:12 UTC
Read the original article
Hit count: 153
I have a linux server, and I am about to upload a classifieds website to it. The website is php based. That means php code adds/removes classifieds, with the help of the users offcourse.
The php-code then adds/removes a classified to a database index called Solr (like MySql). Problem is that anybody can currently access the database, but I only want the website to access the database (solr).
Solr is on port 8983 as standard btw.
My Q is, if I add a rule in my firewall (iptables), to only allow connections coming from the servers IP to the Solr port nr, would this solve my issue?
Thanks
© Stack Overflow or respective owner