Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-27-2005, 03:27 PM Security question
Junior Talker

Posts: 2
Trades: 0
I use MySQL to store most of the html for my pages. I then use php to gather the html from the data base and display it. I've noticed attacks on the site lately though. Normally you go to my site and the addresses are like: www.mysite.com/?page=somepage
The script loads the data and displays it. I'm getting hit sometimes as much as 50 times a day with people entering urls like:
http://www.mysite.com/?page=http://w...t/asc/xpl/asc?

Because I'd never load executable code this way or have it include a file this way the only thing that happens is that my site displays a blank page. What I'm trying to do is undertand this attempted exploit. Does any one know what's going on here?

April.
b8edbreth is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-28-2005, 12:23 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
Nope.

How come you're storing the HTML in SQL? Can you not base your website on templates, then just place data from the SQL into the templates, then you can simply identify the pages with something like www.mysite.com/?pid=34 a lot of websites that have interchangable content do this, news sites in particular - it's a pretty easy and good way to content manage.

Plus you could MD5 or BASE encode the data, making it harder for people to "hack" the site.

I didn't really understand what you were saying though :P
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 04-28-2005, 02:57 PM Re: Security Question
Junior Talker

Posts: 2
Trades: 0
I do it that was so that I can have additional formatting for the page specific content. It works exactly as I wanted and I don't have to do any formatting for on the template.
b8edbreth is offline
Reply With Quote
View Public Profile
 
Old 04-28-2005, 07:44 PM
Skilled Talker

Posts: 57
Trades: 0
are your chmods setup properly?
__________________

Please login or register to view this content. Registration is FREE
ruick is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Security question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15423 seconds with 12 queries