[問題] get時保護php資料
在網頁中使用jquery的get來對php拿資料時
要怎樣才能避免直連php時被看到資料
如:
$.get('example.php',function(data){........
直接連 mydomain/example.php時,預設要傳的資料就會被看到
這樣一來別人就可以輕易使用我的資料
有什麼方法可以只限制特定網頁的ajax可存取??
謝謝各位大神的回答^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.242.15.4
推
07/27 04:06, , 1F
07/27 04:06, 1F
推
07/27 07:23, , 2F
07/27 07:23, 2F
→
07/27 07:24, , 3F
07/27 07:24, 3F
推
07/27 09:25, , 4F
07/27 09:25, 4F
→
07/27 09:26, , 5F
07/27 09:26, 5F
→
07/27 09:27, , 6F
07/27 09:27, 6F
→
07/27 10:18, , 7F
07/27 10:18, 7F
推
07/27 19:59, , 8F
07/27 19:59, 8F
→
07/27 19:59, , 9F
07/27 19:59, 9F
→
07/27 20:00, , 10F
07/27 20:00, 10F
推
07/27 23:37, , 11F
07/27 23:37, 11F
→
07/27 23:37, , 12F
07/27 23:37, 12F
→
07/28 00:42, , 13F
07/28 00:42, 13F
→
07/28 03:38, , 14F
07/28 03:38, 14F
→
07/28 03:40, , 15F
07/28 03:40, 15F
→
07/28 03:40, , 16F
07/28 03:40, 16F
推
07/28 15:27, , 17F
07/28 15:27, 17F
推
07/28 23:05, , 18F
07/28 23:05, 18F
→
07/28 23:08, , 19F
07/28 23:08, 19F
→
07/28 23:32, , 20F
07/28 23:32, 20F
推
07/29 00:15, , 21F
07/29 00:15, 21F
推
07/29 00:25, , 22F
07/29 00:25, 22F
→
07/29 00:26, , 23F
07/29 00:26, 23F
→
07/29 00:26, , 24F
07/29 00:26, 24F
推
07/29 10:59, , 25F
07/29 10:59, 25F
→
07/29 11:01, , 26F
07/29 11:01, 26F
→
07/29 11:01, , 27F
07/29 11:01, 27F
→
07/29 11:03, , 28F
07/29 11:03, 28F
推
07/29 11:05, , 29F
07/29 11:05, 29F
推
07/29 11:05, , 30F
07/29 11:05, 30F
→
07/29 11:05, , 31F
07/29 11:05, 31F
→
07/29 11:06, , 32F
07/29 11:06, 32F
→
07/29 11:07, , 33F
07/29 11:07, 33F
→
07/29 11:07, , 34F
07/29 11:07, 34F
→
07/29 11:08, , 35F
07/29 11:08, 35F
推
07/29 11:14, , 36F
07/29 11:14, 36F
→
07/29 11:15, , 37F
07/29 11:15, 37F
→
07/29 11:16, , 38F
07/29 11:16, 38F
→
07/29 11:17, , 39F
07/29 11:17, 39F
→
07/29 11:17, , 40F
07/29 11:17, 40F
→
07/29 11:18, , 41F
07/29 11:18, 41F
推
07/29 11:29, , 42F
07/29 11:29, 42F
→
07/29 11:30, , 43F
07/29 11:30, 43F
→
07/29 11:31, , 44F
07/29 11:31, 44F
→
08/01 02:37, , 45F
08/01 02:37, 45F
→
08/01 02:38, , 46F
08/01 02:38, 46F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章