Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
X-PHP-Script: themepark.nl/ubb/admin/blabla.php for 1.2.3.4

Anything I can do to not send this on out on mail send from within ubb?
I am on a shared environment so can do little in the php config department.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
Why would you want this removed? Some mail servers will reject mails if they can tell it's from a php script and theres no script name/source listed


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
Why would you want this removed? Some mail servers will reject mails if they can tell it's from a php script and theres no script name/source listed


How about the fact that the ip number is listed there? I don't really care about naming the script, I care about slapping the IP adres there.

Put a watch on a user, and voila, there's the ip adres. Put a watch on the intire forum, get every users ip adres mailed to you. Plus if you reject a user, that user gets your ip adres as a bonus.

b.t.w., that line IS removed from the mails that ubbcentral sends out.

Last edited by blaaskaak; 09/24/2007 3:08 AM.

[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
Well, it's in one of the mailer files; likely the phpmailer class in the libs directory; I don't have code in front of me right this second however to look it up


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Solution: Fill in an smtp server. If you use the php mail stuff, that headerline is added.

I would say that configuring an smtp server would be the prefered way to hide the ip adresses from users, instead of putting it hidden in the advanced stuff.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
Does it really matter though? I mean, they can always just dns your domain name and have your ip address...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
EHr, my home ip, every users home ip.

Don't forget the watch mails are generated as soon as a user posts something, so their ip address is mentioned in the mails that are sended out.

Last edited by blaaskaak; 09/25/2007 2:36 AM.

[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
That's odd, it should be the SERVER ip, not the individual user... no "user" should ever know another user's ip address through the forum... If that is the case, this has to be a bug...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
That line is added if you use the mail function in php, and it adds the ip of the user running the script. By setting an smtp server you avoid using that function and all is well again.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It appears that your sendmail or php configuration is setup to add that. I just looked through the entire ubb directory structure, including the phpmailer class that handles all of the mail functions, and "X-PHP-Script" isn't added anywhere in the code. We do add an X-Mailer header, but nothing else.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
I remember it was on our current host and our previous host. Does ubbcentral send out mails through an smtp server.

Like I said, I think it's php's mail() function that is adding it. I'll test on a few more hosts tonight.

Last edited by blaaskaak; 09/25/2007 11:34 AM.

[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
We just use the standard php mail() here.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Could be something then in the actual configuration of php?


[Linked Image from siemons.org]
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
this is the phpinfo for this very server. My site is on the same server as this site. I don't see anything in here that would add or not add an xmailer php script header, but in truth I am not 100 percent sure what I am looking for either.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
I can't remember what the -t -i flags do


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
I tested it on a different host, and it was not added. But like I said, our current provider and our previous provider did have this added somewhere on the line when you use the php mail function.

I googled en how to remove it, and saw the question more, but no answers.


[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I think quite a few hosts enable this somewhere. Could actually be a sendmail configuration. That way if there is a rogue script somewhere on the server that is generating email they can see not only where the script is located, but also the IP of the user generating the email.

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
So I guess the Conclusion so far is, if you have this kind of behavior at your host, setup an smtp server within ubb.threads.


[Linked Image from siemons.org]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
2 members (Geoff, 1 invisible), 692 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)