BartAfterDark Posted June 21, 2006 Report Posted June 21, 2006 Hey, I tried putting in the # so it shouldn't check for http_refer. But it just wont work, after I did it the links in apanel turns to blank pages and not working. I don't know if it has something to do with the port 82 i'm using now.- - Lars Quote
olajideolaolorun Posted June 22, 2006 Report Posted June 22, 2006 Yes, it does... BTW: You have to comment the whole enter script... not just one line... Everything. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team
BartAfterDark Posted June 22, 2006 Author Report Posted June 22, 2006 # package secure; # # If you want to disable security check - comment the following lines with #. # # if (($ENV{HTTP_REFERER}!~/^http[s]?:\/\/localhost\/apanel/)&&($ENV{HTTP_REFERER}!~/^http[s]?:\/\/127\.0\.0\.\d+\/apanel/)){ # print " # <div id=\"main\"> # <h2>» Security Alert!</h2> # <h3>Possible Attack</h3> # <p> # HTTP_REFERER is not localhost. but '<b>".$ENV{HTTP_REFERER}."</b>'. # <br /> # <br /> # To disable this warning go: /home/admin/www/cgi-bin/secure.pm # <p> # </div>"; # # require footer; # # exit; # }; # # return 1; This should work then? Quote
olajideolaolorun Posted July 9, 2006 Report Posted July 9, 2006 Wll yes, if everything is commented as i said. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team
TeduhDulu Posted August 30, 2008 Report Posted August 30, 2008 Wll yes, if everything is commented as i said. i have the same situation i check my browser ( im using k-meleon ) and i see that my browser is block http referrer so i think the problem maybe with the browser Quote I'm not a coder nor a programmer. I just love learning from error
olajideolaolorun Posted September 11, 2008 Report Posted September 11, 2008 Yeah, it actually happens on my new PC also. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.