עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

שאלה | asp.net או JS - הסתרת כתובת URL

Featured Replies

פורסם

שלום!

ב URL מופיע בסוף, למשל:

id=8

ואני רוצה להסתיר את זה, כדי שהמשתמש לא יוכל לשנות ID,

מהי הדרך הפשוטה ביותר להסתיר את זה?

ונראה לי, שאני לא יכול להשתמש ב POST....

תודה!

שריה

פורסם

שימוש ב-post יקשה על המשתמש לשנות את הפרמטר, אבל לא יהפוך את זה לבלתי אפשרי.

על מנת להפוך את זה לבלתי אפשרי אתה צריך לשמור את המידע הזה ב-Session:

http://msdn.microsoft.com/en-us/library/vstudio/ms178581(v=vs.100).aspx

ככה המשתנה נשמר בצד השרת בלבד וכל מה שהלקוח יכול לראות זה ה-session cookie (שהוא מחרוזת תווים אקראית).

פורסם
  • מחבר

אני חושב שהפתרון הנכון הוא להשתמש במזהה מסוג GUID ולא INT, שהוא מזהה שקשה מאד לנחש אותו...

פורסם

גם נכון, אבל אם מישהו משיג איכשהו מזהה של מישהו אחר, אתה בכל מקרה לא רוצה שהוא יוכל להעתיק אותו.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.