Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: gpoppi on July 20, 2014, 04:15:05 PM

Title: How can I disable reverse hostname lookups without being able to log in?
Post by: gpoppi on July 20, 2014, 04:15:05 PM
Hi everyone, I am having problems with my forum and I would like to know how I could disable the reverse hostname lookups setting without having access to my admin area (logging in problem). Any way to change it through phpmyadmin or ftp?

Thanks
Title: Re: How can I disable reverse hostname lookups without being able to log in?
Post by: kat on July 20, 2014, 04:24:50 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSMF%2Fwelcome.gif&hash=64d0bdab41bf056c5af638442124afd2cc58a5fb)

Outside of SMF, I don't think you can (I could be wrong). But, your host can do it, by editing their Apache configuration, if they're willing so to do.
Title: Re: How can I disable reverse hostname lookups without being able to log in?
Post by: Illori on July 20, 2014, 04:28:35 PM
what makes you think you need to disable hostname look ups?

K@ it is an smf feature, the host may have disabled shell_exec but it can be worked around.

Sources/Subs.php starting around line 3777 starts the host_from_ip function
Title: Re: How can I disable reverse hostname lookups without being able to log in?
Post by: margarett on July 20, 2014, 07:12:11 PM
Or you can go to your smf_settings table, search for a field called "disableHostnameLookup" and set it to "1" (without quotes) ;)