seanryder Posted August 16, 2007 Share Posted August 16, 2007 Hi, I have a demo application that runs on my local fixed IP, say http://x.x.x.x/cgi-bin/myapp.exe/search?item=1&cost=2 I'm new to PHP, is it possible to prevent people seeing my x.x.x.x ip address by putting a PHP file on my external ISP site and passing the request from there to my local server here? I've had a look at redirect in Apache and PHP but they still show the x.x.x.x in the browser. Is this possible/impossible?, Thanks. Link to comment https://forums.phpfreaks.com/topic/65237-passing-requests-through-my-isp-php-to-my-local-fixed-ip/ Share on other sites More sharing options...
trq Posted August 16, 2007 Share Posted August 16, 2007 Just block port 80 access via your firewall if you dont want people to access the site. Link to comment https://forums.phpfreaks.com/topic/65237-passing-requests-through-my-isp-php-to-my-local-fixed-ip/#findComment-325768 Share on other sites More sharing options...
MadTechie Posted August 16, 2007 Share Posted August 16, 2007 maybe .htaccess RewriteEngine on RewriteRule ^/icons/(.+) - [PT,L] RewriteRule ^/(.*) http://subdomain.domain.com/$1 [P,L] Link to comment https://forums.phpfreaks.com/topic/65237-passing-requests-through-my-isp-php-to-my-local-fixed-ip/#findComment-325772 Share on other sites More sharing options...
seanryder Posted August 16, 2007 Author Share Posted August 16, 2007 Thanks for the help guys.. I tried .htaccess but doesn't seem to do anything I'll try again later once I get more familiar with it (I tried it locally on apache xp and my isp Apache Linux/Unix). I don't mind people having access to my x.x.x.x site, it's just that it doesn't look as good as a registered domain. I'm a bit surprised that PHP doesn't have a technique for obtaining its page content from an executable on another site, I can't find the link but I thought I saw an ASP example that uses something like Response.content = (something with querystring..?) - anything similar in PHP in case .htaccess doesn't work for me? Link to comment https://forums.phpfreaks.com/topic/65237-passing-requests-through-my-isp-php-to-my-local-fixed-ip/#findComment-325843 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.