Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Securing Pages
kvarnerexpress
post Jun 21 2005, 08:04 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



just wondering if there is a easy safe way to secure some webpages.

i have a payment facility on my site which is linked through paypal. when the member has paid they are taken back to my site "thanks your payment has been successful page", once its went to this page the item is no longer listed on my site.

now i have found away people can mess with this using the url. this means people can change just a few digits in the url and and mess the listings up on my site.

after payment has been made the member is redirected to:-

mydomain.com/class/thanks_paypal.php?myprod_id=78&MemberID=11

this means i could over ride the id (78) with another id (80) (90) etc etc, this would then mean these items would show as sold and come off my site.

is there away to either hide my url: so it only shows the following mydomain.com/class/

or is there another way to make it more secure,thanks

kvarnerexpress
Go to the top of the page
 
+Quote Post
rvalkass
post Jun 22 2005, 05:42 AM
Post #2


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,156
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol



Change the action of the form from GET to POST and then use $_POST['variable'] rather than $_GET. This will hide the information being sent and it can't be changed by the user.
Go to the top of the page
 
+Quote Post
beeseven
post Jun 24 2005, 11:40 PM
Post #3


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post forms would be better, as previously stated. You could also use hidden inputs if you have to take it through several pages:
CODE
<input type="hidden" name="prod_id" value="###" />


If you also want secure as in payment and such, then you have to buy a certificate.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php Classes(1)
  2. Securing Images(2)
  3. Blocking Pages & Making Ranks(4)
  4. Parsing .html Pages(9)
  5. Changing Include Tag On All Pages(11)
  6. Search Site Pages Using Keywords?(6)
  7. Question: Securing A Website For Beginners(1)
  8. Securing A Php Script Proccessing Input(7)
  9. Dynamic Php Pages(5)
  10. Putting Data Of 2 Pages In Mysql At Once(1)
  11. Php Pages Permission On Apache Server(1)
  12. Php An Js Window.open Pages Trouble.(3)
  13. Php Pages Problem [resolved](5)
  14. 2 Pages Into One(10)
  15. Protect Pages(20)
  1. Pagination(3)


 



- Lo-Fi Version Time is now: 7th October 2008 - 04:26 AM