Exclude Oracle website from search engines? - c#

I'm a C# developer and last year i took over some projects at work, which are websites made completely in Oracle. I have 0 experience with oracle.
Suddenly the websites are visible on Google, which they are not supposed to...
Can anyone help me how to avoid that?
I know about "robots.txt" but i don't know where to put it in Oracle. We're having a hard time finding the root.
Does Oracle have a special way to fix this? or does anyone know any alternate solutions?
It's all located on a subdomain, if that's any help.

I suppose, there is some Oracle CMS in use, like WebCenter Content. Any CMS, not only any one by Oracle has inbuild metadata management. If even not, there should be any access to an engine, which generates HTML from database or XML content.
What i would do - i would search for something in the backend of the Oracle CMS, where you can manage metadata of each web document. After you got it, add to every web document's meta data the robots meta tag <meta name="robots" content="noindex, nofollow">. Thats it.
In case the content of web documents is saved in the database, find a table with the content of web documents - if their heads are saved in the database separately - find them. Then run an INSERT query into each row of this table, with the meta robots tag i wrote above.
I can imagine, after INSERT query you will be forced to re-render all web documents - do it to make new head content appear.
Another way to go could be to create X-Robots-Tag on your webserver (if there is any Apache or Nginx between your Tomcat and the web) and put into X-Robots-Tag the "noindex, nofollow"-rule. Whether Tomcat (or the like) supports X-Robots-Tag or similar - i don't know.

Related

Data Migration - SQL Server

I have a problem with a data migration. I will try to give all the information to help me solve this situation. A little of history:
In 2005 an internal website was developed to help manage its business. Due to the latency and change of business rules a developer was hired in 2019 to put "order in the house" (me). When I got the website I was not given the source code, without thinking twice I performed a platform from scratch in C#. All right here, everything was a success. The problem then arose in data migration.
The most important thing to keep, was the files (pdf, .xsd, etc). I then picked up the data from SQL Server 2005 (old website) to SQL Server 2017 (new website).
The content of the files on the old website was in the data type of 'IMAGE' and after research I found it better to put in the new website as 'VARBINARY'.
With the data all migrated, on the new website when I have downloaded the file I get the following error message:
Adobe Acrobat Reader could not open 'file_name' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)
I do not know if it helps but for example, if I insert a file normally on the website its download works correctly. The field is that it behaves differently (the first was the one inserted by the website and the others came from the migration).
This is a print screen of database:
http://prntscr.com/mwilex
Does anyone know why the error? Has anyone ever come across a similar situation?
Bst: I run a query [SELECT SERVERPROPERTY('Collation')] and the output of the two Databases are the same, 'SQL_Latin1_General_CP1_CI_AS'

ASP.NET Browser Cache causing issues

I have looked for answers to this question, but I am not sure if I am asking it right.
I am looking for what do developers do in this situation:
I am developing an ASP.NET C# applications. I have CSS and SCRIPT files, and I am using jQuery. I install my application to the Web Servers (or I have my customer install them). If I have made any changes to my script files by adding some new jQuery or something, my customers don't get that effect after I do an update. I assume that the reason is that their browsers cache the file on the local computer and they do now download the new file from the server.
In my development environment I clear the cache when I close the browser and on IE I tell it in options to always load from the server. That way when developing I never have cached data.
What is the best practice to make sure that if I do make changes, those files get refreshed on the client computers after I do an update? Is there something in Code I can do?
I really don't want to change the filename and update all my script references.
Thanks,
Cory
The traditional way is to append a query string argument to the end of the reference to the css/script file path. For example, if you append a build number as the query string, each version of the software will make its own request for the relevant resource.

Content Editor for Client

I've created a website for a client of mine. It is coded in ASP.NET with C# and hosted on GoDaddy. She requires this website to updated daily by her. However, this client has very little knowledge of how to edit HTML or text within a site. I don't want to edit it every time she wants an update on the site.
What would be the best solution to my problem? I have looked up Content Management Systems, but I'm a little confused by what exactly it does in terms of coding and the management of the existing site. Does it require me to reformat the whole site to follow the CMS's 'templates'? Would it be better for me design my own back-end panel for her to edit the content (this would obviously take significant work)?
If you want to stick with a site you're developing from scratch, I'd use the HtmlEditor from the AjaxControlToolkit or a similar control, and store the html content in the database.
Then, when outputting the html from the database to the client pages, I'd make sure to use the Microsoft Anti-Cross Site Scripting Library to sanitize the html using the GetHtmlFragment() function (since this is tagged asp.net). It's not that much work, actually, if you design the database correctly, and if you've got the skills.
CMS systems are (trying not to oversimplify) entire web sites that are already built and allow people to edit the content using built-in content editing functionality. They range in functionality and extensibility from a "You get what you get and there's very little you can change" to "You can customize the heck out of it and buy or build your own modules to extend functionality." There are a lot of good ones out there, some free, and some expensive.

Web Browser in .NET. Browser setting

I have created a web browser in .NET [c#]. It is working fine but I am little confused with how to manage these things.. please help me in deciding how to implement it!
Where/How the cookies will be stored in my browser?
Bookmark?
History?
Pop Up blocker / other browser settings?
I can understand that the question is too general, but even your little suggestion will help me a lot.
Look at how other browsers handle cookies, they store it in the browsers temp (cache) folder
Bookmarks are just a key value list (at the very simpliest), key is a URL, value is the display name. Any place you can store a key/value list (like a database) would work.
History is just bookmarks that are automatically captured and ordered by date.
This depends on what you are using for the web browser control - if you are using the IE activeX control then you are stuck to sharing settings with it. This also means that you have a fantastic UI built for the settings though. If you have written your own then you need to store them somewhere, in a database for example.
I have mentioned database a few times, but I am not thinking a full MS SQL Server install, but rather something like SQLite.

Home/Landing screen design for a website in asp.net

I have an web based application. The content for the Home page has been currently mentioned in the HTML code for the Home page using , and tags. To change the content anytime in future, it needs to be changed in the HTML code. :(
Is there a way that we can pick up the content from some external place and get it reflected through the website. This ways, any change if required can be made at the external location without referring to the application's code.
Please advise if there is any solution for it.
Thanks.
You can
Use a database
Include external files using Server Side Includes
Read external files and write their contents and an alternative method
Sounds like you're looking for a Content Management System (CMS), which will allow your content editors access to modify only specific blocks of a page that you specify.
There are a ton out there to do what you want, so you don't have to start from scratch. Just Google 'CMS'.
Although I haven't used it myself, DotNetNuke is a popular one these days and has a free version.

Categories

Resources