|
Hi,
There is a online website of mine I would like to restrict users so that they will not able to save it offline using offline website copier software like HTTrack Website Copier and other similar software. Please help me.
|
|
|
|
|
If you manage to stop HTtrack then what about other apps that do the same thing you haven't heard of yet? Or a tool I wrote myself? Or just viewing the source and saving it? Or using my Browser's "Save As" function? Or not doing anything special, just taking the files from the cache folder? If there is no standardised way of doing something there is no way of stopping it.
If you don't want people copying your page, don't put it on the internet.
|
|
|
|
|
Not worth the effort. Move along.
There's a website I frequent that disables the right-click context menu, it pops up a dialog saying "don't do that", with (I expect) the purpose of keeping users (like me) from saving images from the site. But I can (and do) use Print Screen or any of the screen grabbers available to do that. Why do they bother? It's a mystery.
|
|
|
|
|
PIEBALDconsult wrote: Print Screen or any of the screen grabbers
The "Page Info" window in Firefox would let you save the original image. You don't even need to right-click to launch it - just press Alt to show the menu bar, then "Tools -> Page Info".
You could also use the developer tools to find the image URL, and save it from there.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: Firefox
But I can't think in Russian.
A screen grabber has the added benefit of allowing cropping and saving as a different (better) format.
|
|
|
|
|
|
Sorry.
|
|
|
|
|
You need to get over people stealing your brilliant content and code.
Took me years to get over people and machines steeling my pictures.
|
|
|
|
|
HI,
How to set Fieldset alignment in centre???
|
|
|
|
|
Are you looking something like this -
<fieldset style="border: solid 1px black; text-align: center;">
<legend>legent title</legend>
// something here ....
</fieldset>
modified 20-Sep-20 21:01pm.
|
|
|
|
|
HI,
What is the use of HiddenField???
|
|
|
|
|
|
HiddenField are basically used to store the small information or page specific information.
|
|
|
|
|
It is one of the way to hold client side values since they will not be displayed but accessible in server and client side.
|
|
|
|
|
hi every body
I have a HTML structure, something like
<body>
<div id="upperWrapper">
<%----%>
</div>
<div id="main Container">
<%----%>
</div>
</body>
Now I want the "upperWapper" height be the same size as my device ViewPort height. I know the JQuery can do this for me ;) but I wonder if there is a pure CSS solution or some better one! any help would be appreciated
|
|
|
|
|
found the solution by myself, I should set the div height to:
height:100vh;
vh means "viewport Heigh".
may be useful to some one else
|
|
|
|
|
Hi,
I am new in MVC and Entity framework, so I have some problem in my first project. So sorry if my question is to noob
What I have at this point:
I have table users(ID, Name, Password, TypeID, StatusID) and I have lookup table for this fields TypeID, StatusID UserTypes and UserStatuses.
Here is some code for more clarity
CREATE TABLE [dbo].[Users](
[ID] [int] NOT NULL,
[Name] [varchar](512) NOT NULL,
[Password] [varchar](128) NOT NULL,
[TypeID] [int] NULL,
[StatusID] [int] NULL
)
CREATE TABLE [dbo].[UserStatuses](
[ID] [int] NOT NULL,
[Description] [nvarchar](128) NULL
)
CREATE TABLE [dbo].[UserTypes](
[ID] [int] NOT NULL,
[Description] [nvarchar](128) NULL
)
In UserStatuses Table I store "active", "Blocked"
and in UserTypes "Admin", "User", "guest"
Values in UserTypes mey change in future so, I don't wont to convert Users.TypeID field in Enum.(this is important for me !)
What I need
How display user friendly values "active", "Blocked" for StatusID and "Admin", "User", "guest" for TypeID field, instead of number editor when I am generating view ?
link to some good article is welcome
|
|
|
|
|
You need to add relationships between the tables such that Users.StatusID maps relates to UserStatuses.ID etc. When EF generates your models you'll then be able to use
user.UserStatus.Description
|
|
|
|
|
I have read the following article:
https://msdn.microsoft.com/en-us/library/bb355989.aspx
Now this article allows me to understand XSS vulnerability defense to a webpage that is statically made up of asp and html controls built on a webpage as in true markup layout fashion. I now understand that that control input should use not only server side in validation but input should validate length, range, format and type. The question I have is that I am trying to sanitize a website where the page layout controls are build on to the DOM object dynamically when the page loads. For example on the page load event methods add controls to the document object one at a time in the method that builds the entire webpage during that calling method. Also, control event handling is done by methods that send concatenated JavaScript strings, during page load, as output to the page that handle page control events. I guess my question is, how do I use asp.net validation controls, regex checking, etc. functionally when everything is built, the DOM and JavaScript event handling on the loading of the webpage? For example adding controls as in the following fashion:
<pre>
private void CreateControls(ControlCollection cc)
{
if (RadScriptManager.GetCurrent(_contextPage) == null)
{
RadScriptManager rsm = new RadScriptManager();
rsm.ID = "scriptManager";
cc.Add(rsm);
}
}
<pre>
-- modified 14-Jun-15 13:45pm.
|
|
|
|
|
I am new to repairing security vulnerability on ASP .NET code. Can someone give me links to on-line reference material where someone new like me can learn the process?
|
|
|
|
|
Good Day All
i have a web api with a controller like this
public class RegistrationController : ApiController
{
[System.Web.Http.AcceptVerbs("GET", "POST")]
[System.Web.Http.HttpGet]
public int Get([FromBody]Registration model)
{
try
{
GetMyContact.Services.Database.Database db = new Database.Database();
db.RegisterUser(model);
var response = Request.CreateResponse<string>(HttpStatusCode.Created, string.Empty);
string uri = Url.Link("DefaultApi", new { id = model.USER_ID });
response.Headers.Location = new Uri(uri);
return model.USER_ID;
}
catch(Exception ex)
{
HttpStatusCode statusCode = HttpStatusCode.BadRequest;
var errResponse = Request.CreateResponse<string>(statusCode, ex.Message);
throw new HttpResponseException(errResponse);
}
}
}
and the config is like this
<pre> config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);</pre>
and i am testing it using the following URL just to see if i will hit that breakpoint http://localhost:39194/api/Registration
but i get the following error on the browser
<error>
<message>
The requested resource does not support http method 'GET'.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vimalsoft.com
vuyiswa[at]vimalsoft.com
|
|
|
|
|
Try executing it by removing ,
[System.Web.Http.AcceptVerbs("GET", "POST")]
[System.Web.Http.HttpGet]
Since your action name is Get , it will automatically be executed with Get Verb.
Thanks
Do not forget to comment and rate the article if it helped you by any means.
|
|
|
|
|
Good morning every body! Please help me out in this since I can't really figure out what is wrong.
I have a datalist control that displays posted status. Inside this datalist is a textbox control and a button 'Add idea'. I want visitors to add their own idea so I used this code
Public Sub AddIdea(ByVal sender As Object, e As DataListEventsCommand...)
Dim txt As TextBox = e.Item.FindControl("txtidea")
If txt.Text <> "" Then
MsgBox (txt.Text)
Else
MsgBox ("No idea entered")
End Sub
But if the Add idea button is heat, the msgbox returns an empty string. Help please.
|
|
|
|
|
Debug your code and check what is the value you are getting in txt variable. It looks like txtidea control is not found by FindControl() and hence the result is empty.
Also, avoid checking string values with ""
If txt.Text <> "" Then
Instead use
If !string.IsNullOrEmpty(txt.Text) Then
its cleaner and less error prone.
|
|
|
|
|
Abhipal Singh wrote: If !string.IsNullOrEmpty(...
VB.NET uses Not , not ! , for logical negation.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|